Re: wxTimer problem

2006-09-16 Thread Bjoern Schliessmann
abcd wrote: > thanks for NO help. Know what? I knew you were going to answer like that. Regards, Björn -- BOFH excuse #415: Maintenance window broken -- http://mail.python.org/mailman/listinfo/python-list

Re: wxTimer problem

2006-09-16 Thread Morpheus
On Fri, 15 Sep 2006 12:47:30 -0700, abcd wrote: > I have a python script which creates a wx.App, which creates a wx.Frame > (which has a wx.Timer). > > looks sorta like this: > > class MyProgram: > def __init__(self): > self.app = MyApp(0) > self.app.MainLoop() > > class MyA

Re: wxTimer problem

2006-09-15 Thread abcd
> Fix: Start the script from the main thread only. > > Regards, > > > Björn thanks for NO help.anyways, I got rid of the Timer b/c all i was using it for was to check the state of the "shift" key.but I am now binding to key up/down. thanks anyway -- http://mail.python.org/mailman/listi

Re: wxTimer problem

2006-09-15 Thread Bjoern Schliessmann
abcd wrote: > ...and I am getting this error: > > "timer can only be started from the main thread" > > how can I fix this?? > > FYI, my script is being started by a new thread each time Fix: Start the script from the main thread only. Regards, Björn -- BOFH excuse #53: Little hamster in

wxTimer problem

2006-09-15 Thread abcd
I have a python script which creates a wx.App, which creates a wx.Frame (which has a wx.Timer). looks sorta like this: class MyProgram: def __init__(self): self.app = MyApp(0) self.app.MainLoop() class MyApp(wx.App): def OnInit(self): self.myframe= MyFrame()

Re: wxTimer problem

2005-05-14 Thread F. GEIGER
As Jp asked already: "indepenedent" from what? I do such things all the time in a wx-App that controls a 6-axes robot. For example, there I have a LED-Widget for displaying the actual pos. and orient. of the tool. In a wxTimer handler I read OPC variables, whose values are displayed in the LED-Wid

Re: wxTimer problem

2005-05-13 Thread Jp Calderone
On Fri, 13 May 2005 14:57:26 +0800, Austin <[EMAIL PROTECTED]> wrote: >I wrote a GUI program on windows. (python & wxPython) >One function is to refresh the data from the COM Object continously. >In the beginning, I used the thread.start_new_thread(xxx,()) >But no matter how i try, it will cause th

wxTimer problem

2005-05-13 Thread Austin
I wrote a GUI program on windows. (python & wxPython) One function is to refresh the data from the COM Object continously. In the beginning, I used the thread.start_new_thread(xxx,()) But no matter how i try, it will cause the win32com error. After that, i use the wx.Timer to do the refresh functi