- Timestamp:
- Dec 1, 2011 4:48:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified moxy/trunk/src/test/gui.py ¶
r696 r697 26 26 27 27 import epics 28 import threading # not obvious this helps or hurts29 28 import wx 30 29 … … 39 38 40 39 41 class ActionHandler(Handler , threading.Thread):40 class ActionHandler(Handler): 42 41 '''implements controls for PvMail GUI application''' 43 44 def __init__(self):45 threading.Thread.__init__(self)46 42 47 43 def _findGui(self, uinfo): … … 166 162 '''About this application''' 167 163 print 'About ...', __svnid__ 168 169 def _on_separator(self, uinfo):170 '''separator line in a menu, do nothing'''171 pass172 164 173 165 … … 256 248 QuitAction = Action(name = 'Quit', 257 249 action = '_on_close') 258 MySeparator = Action(name = '-'*8,259 action = '_on_separator')260 250 261 251 vgrid = VGrid( … … 269 259 menubar = StandardMenuBar 270 260 menubar = MenuBar( 271 Menu( MySeparator, QuitAction, name='File'), # New, Open, Close, -, Save, SaveAs, -, Import, Export, Preferences, -, Quit261 Menu(Separator(), QuitAction, name='File'), # New, Open, Close, -, Save, SaveAs, -, Import, Export, Preferences, -, Quit 272 262 Menu(UndoAction, RedoAction, name='Edit'), 273 263 Menu(name='Page'), # (Pair) Create, Delete, Change, -, EpicsConfig 274 264 Menu(name='Tab'), # Create, Delete, Change, -, Create Row 275 Menu(HelpAction, Separator , AboutAction, name='Help'),265 Menu(HelpAction, Separator(), AboutAction, name='Help'), 276 266 ) 277 267
Note: See TracChangeset
for help on using the changeset viewer.