|
From: Alec B. <wry...@gm...> - 2008-12-30 20:06:30
|
Thank you! Works like a proverbial charm.
To anyone else coming down this road, here's how to make a PythonCard
app always on top:
test.py:
from PythonCard import model
import wx
class Minimal(model.Background):
def __init__(self, aParent, aBgRsrc):
aBgRsrc.style = ['wx.DEFAULT_FRAME_STYLE','wx.STAY_ON_TOP']
model.Background.__init__(self, aParent, aBgRsrc)
if __name__ == '__main__':
app = model.Application(Minimal)
app.MainLoop()
test.rsrc.py
{'application':{'type':'Application',
'name':'Minimal',
'backgrounds': [
{'type':'Background',
'name':'bgMin',
'title':u'Tester',
'size':(403, 371),
'backgroundColor':(0, 0, 0),
'style':['resizeable'],
'components': [
{'type':'StaticText',
'name':'Testing',
'position':(151, 131),
'font':{'faceName': u'Tahoma', 'family': 'sansSerif', 'size': 12},
'foregroundColor':(255, 255, 0, 255),
'text':u'Testing',
},
] # end components
} # end background
] # end backgrounds
} }
|