Well, at least with "esc". I've run various tests, and it appears
that although the correct entries are made in the accelerator table
for the form, pressing "esc" has no effect. I've tested with both
plain forms as well as dialogs.
I'm wondering if this is a VMWare thing, or if anyone else with a
true Windows machine can verify. A quick script to test it follows my
sig.
-- Ed Leafe
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import dabo
dabo.ui.loadUI("wx")
class TestForm(dabo.ui.dForm):
def afterInit(self):
b = dabo.ui.dButton(self, Caption="dialog",
OnHit=self.runDialog)
def runDialog(self, evt):
dlg = dabo.ui.dDialog(self)
dlg.bindKey("esc", self.onEscapePressed)
dlg.bindKey("shift+esc", self.onEscapePressed)
dlg.show()
dlg.release()
def onEscapePressed(self, evt):
if evt.shiftDown:
msg = "Shift+Escape pressed!"
else:
msg = "Escape pressed!"
dabo.ui.info(msg)
if __name__ == "__main__":
app = dabo.dApp()
app.MainFormClass = TestForm
app.start()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]