dabo Commit
Revision 4271
Date: 2008-07-10 19:50:31 -0700 (Thu, 10 Jul 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4271
Changed:
U trunk/dabo/ui/uiwx/dMenuItem.py
Log:
Added localization to latest change, along with some minor coding style changes.
Diff:
Modified: trunk/dabo/ui/uiwx/dMenuItem.py
===================================================================
--- trunk/dabo/ui/uiwx/dMenuItem.py 2008-07-11 02:41:58 UTC (rev 4270)
+++ trunk/dabo/ui/uiwx/dMenuItem.py 2008-07-11 02:50:31 UTC (rev 4271)
@@ -86,10 +86,11 @@
def _setCaption(self, val):
if self._constructed():
- if len(val.split("\t")) == 1:
+ if val.count("\t"):
+ # They're using the technique of caption + tab
+ hotkey
+ raise ValueError, _("Please put HotKey
combination in HotKey property.")
+ else:
self._caption = val
- else:
- raise ValueError, "Please put HotKey
combination in HotKey property."
self._redefine()
else:
self._properties["Caption"] = val
_______________________________________________
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]