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

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 self.startT

Re: Formatted string to object

2006-06-26 Thread janama
ow)" % aaa) result YAY! How would i to achieve this with getattr() ? getattr(locals()['parent'], aaa)??? Why would this be better as recommended in previous post here http://groups.google.com.au/group/comp.lang.python/browse_frm/thread/2529515bc85cd954/c2f080b21d668081?q=janam

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
ap1.SetBitmap(b1) else: 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 fr

Newbie wxpython staticbitmap help please

2006-06-14 Thread janama
Hi, how do i go about having my little gui (boa) app updating (changing) the bitmap used in a StaticBitmap automatically. In the example below when i click the button the app check checks to see if a file exists and if so it swaps the StaticBitmap in the gui to another bitmap. Can somewho