[Pythoncard-users] what is the syntax for posting an event?
by David Primmer other posts by this author
Apr 21 2002 1:31PM messages near this date
RE: [Pythoncard-users] bug in sound.py
|
RE: [Pythoncard-users] what is the syntax for posting an event?
This has been covered before but it wasn't spelled out clearly enough
for me. What do I need to do to post an event? How would I simulate
someone selecting a checkable menu item?
I have a child window whose visibility is controlled by the menu item
and I want to toggle the menu check when the use closes the child
window.
So here's my menu handler:
def on_menuViewPreviewBrowser_select(self, event):
state = self.menuBar.getChecked('menuViewPreviewBrowser')
#show or hid the browser child'
self.iechild.Show(state)
self.configState['browserpreview.visible'] = state
and here's the child PreviewBrowser window's close methods:
def doExit(self):
pass
##here's where I'd like to set the state
# we don't have window events hooked up yet to our own event model
yet
def OnCloseWindow(self, event):
self.doExit()
self.Show(0)
thanks.
davep
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Thread:
David Primmer
Kevin Altis
|