Re: tips on reducing flicker?

Phil Edwards <[email protected]> Mon, 12 May 2008 15:55:53 +0100
Newsgroups gmane.comp.python.pythoncard
Message-ID <[email protected]>
Alec Bennett wrote:
> 
> In wx I could set something like 
> self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM), but not in PythonCard as 
> far as I can tell?
> 

Hi Alec:

You should still be able to do all the regular 'raw' wxPython stuff in 
your PythonCard application, since most of the PythonCard objects are 
subclassed from their wxPython equivalents.

As an example, I have the following code in a little applet I wrote to 
simplify the management of profiles for the various wireless networks I 
use regularly:

     def on_scanBtn_mouseClick(self, event):
         win = MyMiniFrame(self, "Wireless Network Scan",
                           style=wx.DEFAULT_FRAME_STYLE | 					 
wx.TINY_CAPTION_HORIZ)
         win.SetSize((200, 60))
         win.CenterOnParent(wx.BOTH)
         win.Show(True)
         win.Update()
         win.Refresh()
         wx.Yield()

This is just some raw wxPython code called from in the middle of the 
PythonCard app that surrouonds it.

-- 

Regards

Phil Edwards   |  PGP/GnuPG Key Id
Brighton, UK   |  0x68393AEE


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone