i am having a notebook ctrl.
Is it possibe to set timer in notebook
I tried doing
import filename
class Sample(wx.Notebook):
def __init__(self, parent,log):
wx.Notebook.__init__(self, parent, size=(1000,1000))
self.log = log
self.topFrame = parent
self.name= filename.functn(self, -1)
self.AddPage(self.name=,"NAME1")
self.Bind(wx.EVT_TIMER, self.OnUpdateTimer)
def OnUpdateTimer(self,evt):
print “Inside fn”
The prob iam facing is itz not going to the OnUpdateTimer function.
Will EVT_TIMER work? or should i need to write a sep class that implements timer?
···
–
Regards,
Shine Anne
Shine Anne wrote:
i am having a notebook ctrl.
Is it possibe to set timer in notebook
I tried doing
import filename
class Sample(wx.Notebook):
def __init__(self, parent,log):
wx.Notebook.__init__(self, parent, size=(1000,1000))
self.log = log
self.topFrame = parent
self.name= filename.functn(self, -1)
self.AddPage(self.name=,"NAME1")
self.Bind(wx.EVT_TIMER, self.OnUpdateTimer)
def OnUpdateTimer(self,evt):
print "Inside fn"
The prob iam facing is itz not going to the OnUpdateTimer function.
Will EVT_TIMER work? or should i need to write a sep class that
implements timer?
Just to be sure: have you created a wx.Timer object and called its Start() method?
Christian
Oh no…i got the answer…i just gorgot to start …
oppps sorry
···
On 4/21/06, Shine Anne m2ids2005@gmail.com wrote:
i am having a notebook ctrl.
Is it possibe to set timer in notebook
I tried doing
import filename
class Sample(wx.Notebook):
def __init__(self, parent,log):
wx.Notebook.__init__(self, parent, size=(1000,1000))
self.log = log
self.topFrame = parent
self.name= filename.functn(self, -1)
self.AddPage(self.name=,"NAME1")
self.Bind(wx.EVT_TIMER, self.OnUpdateTimer)
def OnUpdateTimer(self,evt):
print "Inside fn"
The prob iam facing is itz not going to the OnUpdateTimer function.
Will EVT_TIMER work? or should i need to write a sep class that implements timer?
Regards,
Shine Anne
–
Regards,
Shine Anne