Changeset 4265
- Timestamp:
- 07/10/2008 12:29:57 PM (2 months ago)
- Files:
-
- trunk/dabo/ui/uiwx/__init__.py (modified) (2 diffs)
- trunk/dabo/ui/uiwx/dMenuItem.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/ui/uiwx/__init__.py
r4234 r4265 1165 1165 pic = itmatts["Picture"] 1166 1166 special = itmatts.get("special", None) 1167 if hk:1168 cap += "\t%s" % hk1169 txt = cap1170 1167 binding = previewFunc 1171 1168 fnc = "" … … 1180 1177 help = itmatts["HelpText"] 1181 1178 menuItem = menu.append(cap, OnHit=binding, help=help, 1182 picture=pic, special=special )1179 picture=pic, special=special, HotKey=hk) 1183 1180 1184 1181 try: trunk/dabo/ui/uiwx/dMenuItem.py
r4115 r4265 83 83 84 84 def _getCaption(self): 85 return self._caption 85 return self._caption[:] 86 86 87 87 def _setCaption(self, val): 88 88 if self._constructed(): 89 self._caption = val 89 if len(val.split("\t")) == 1: 90 self._caption = val 91 else: 92 raise ValueError, "Please put HotKey combination in HotKey property." 90 93 self._redefine() 91 94 else:
