Is there a way to make cogen work with wxWidgets? Kinda "wxreactor"?
Comment #1
Posted on Jul 16, 2008 by Happy DogYou could get the sched as an iterable and iter it on an idle event (note the bind)
Though performance is abysmal.
{{{ sched = Scheduler() sched_iter = sched.iter_run()
from wx import *
class MyApp(App): def OnInit(self): frame = Frame(None, -1, "Hello world") frame.Show(True)
self.Bind(wx.EVT_IDLE, self.OnIdle)
return True
def OnIdle(self, evt):
sched_iter.next()
app = MyApp(0) app.MainLoop()}}}
Comment #2
Posted on Jul 16, 2008 by Happy DogThe other option is to run the cogen scheduler in another thread
Comment #3
Posted on Jul 16, 2008 by Quick OxMaybe I could create a Timer, just like the QtReactor does.
Thank you so much!
Comment #4
Posted on Nov 24, 2008 by Happy Dog(No comment was entered for this change.)
Status: Done
Labels:
Type-Defect
Priority-Medium