Wxpython, using more than 1 timer?

2006-07-22 Thread janama
Hi all, Using wx When adding a second timer as i have the first, the second timer adding stops the first timer (updating or stops?) . In this example im updating a uptime and localtime label. It works fine for displaying the last self.startTimer2() called. But prevents the previous

Re: Wxpython, using more than 1 timer?

2006-07-22 Thread janama
Thanks for that, cheers Regards nikie wrote: janama wrote: Hi all, Using wx When adding a second timer as i have the first, the second timer adding stops the first timer (updating or stops?) . In this example im updating a uptime and localtime label. It works fine for displaying

Re: Formatted string to object

2006-06-26 Thread janama
Thankyou everyone for help last time: The following works ok when setting a wx.lib.buttons.GenBitmapTextButton's disabled bitmap in using wxpython instead of this: self.b1.SetBitmapDisabled(self.yellow) i can use this: aaa = 1 result1 = eval(self.b%s.SetBitmapDisabled(self.yellow) % aaa) result

Formatted string to object

2006-06-19 Thread janama
Hi, can such a thing be done somehow? aaa = self.aaa bbb = %s.%s % ('parent', 'bbb') Can you use strings or %s strings like in the above or aaa = 'string' aaa.%s() % 'upper' Somehow? Thanks for taking a look at this Regards Janama -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie wxpython staticbitmap help please

2006-06-16 Thread janama
: print ok file present i = wx.Image('images/pageGrey.png',wx.BITMAP_TYPE_PNG) b1 = wx.BitmapFromImage(i) self.staticBitmap1.SetBitmap(b1) The above works a treat, thanks again Jean janama -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie wxpython staticbitmap help please

2006-06-15 Thread janama
jean-michel bain-cornu wrote: Why won't you write it yourself using the demo ? It's clear and well documented. Regards, jm Hi, have been just trying for 5 hours with the timer demo in wx, i just havnt clicked with how to tie it in together, I know (think) i need the following features from