Hi, can this be done? Please post a short example. Thanks,
Bruce
Hi, can this be done? Please post a short example. Thanks,
Bruce
from wxPython.wx import *
class MyFrame(wxFrame):
def __init__(self, parent, id, title):
wxFrame.__init__(self, parent, id, title)
self.image = wxBitmap('/usr/share/pixmaps/XMMS1.png')
EVT_PAINT(self, self.OnPaint)
def OnPaint(self, event):
self.Paint(wxPaintDC(self))
def Paint(self, dc):
dc.DrawBitmap(self.image, 0, 0)
class MyApp(wxApp):
def OnInit(self):
wxInitAllImageHandlers()
self.frame = MyFrame(None, -1, "TITLE")
self.frame.Show(true)
self.SetTopWindow(self.frame)
return true
app = MyApp(0)
app.MainLoop()
On Fri, 2003-01-10 at 08:28, brucedickey wrote:
Hi, can this be done? Please post a short example. Thanks,
--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308 (800) 735-0555 x308
brucedickey wrote:
Hi, can this be done? Please post a short example. Thanks,
There's already an example in the demo. Look at the ColourDB sample.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!