Re: How to subclass Minimal?
"Alec Bennett" <[email protected]> Tue, 30 Dec 2008 12:24:20 -0800
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
The final thing I need to be able to do is pass the app a parameter.
Can you see an easy way to do that? Something like this... Note the
"test" and "dummy" below. This fails with "No such file or directory:
'test'".
from PythonCard import model
import wx
class Minimal(model.Background):
def __init__(self, aParent, dummy, aBgRsrc):
aBgRsrc.style = ['wx.DEFAULT_FRAME_STYLE','wx.STAY_ON_TOP']
model.Background.__init__(self, aParent, dummy, aBgRsrc)
if __name__ == '__main__':
app = model.Application(Minimal, "test")
app.MainLoop()
------------------------------------------------------------------------------