Changeset 697 for moxy


Ignore:
Timestamp:
Dec 1, 2011 4:48:26 PM (14 years ago)
Author:
jemian
Message:

Separator(), not Separator -- also removed threading since it did not seem to help

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified moxy/trunk/src/test/gui.py

    r696 r697  
    2626
    2727import epics
    28 import threading        # not obvious this helps or hurts
    2928import wx
    3029
     
    3938
    4039
    41 class ActionHandler(Handler, threading.Thread):
     40class ActionHandler(Handler):
    4241    '''implements controls for PvMail GUI application'''
    43    
    44     def __init__(self):
    45         threading.Thread.__init__(self)
    4642   
    4743    def _findGui(self, uinfo):
     
    166162        '''About this application'''
    167163        print 'About ...', __svnid__
    168    
    169     def _on_separator(self, uinfo):
    170         '''separator line in a menu, do nothing'''
    171         pass
    172164
    173165
     
    256248    QuitAction = Action(name = 'Quit',
    257249                         action = '_on_close')
    258     MySeparator = Action(name = '-'*8,
    259                        action = '_on_separator')
    260250   
    261251    vgrid = VGrid(
     
    269259    menubar = StandardMenuBar
    270260    menubar = MenuBar(
    271         Menu(MySeparator, QuitAction, name='File'),     # New, Open, Close, -, Save, SaveAs, -, Import, Export, Preferences, -, Quit
     261        Menu(Separator(), QuitAction, name='File'),     # New, Open, Close, -, Save, SaveAs, -, Import, Export, Preferences, -, Quit
    272262        Menu(UndoAction, RedoAction, name='Edit'),
    273263        Menu(name='Page'),      # (Pair) Create, Delete, Change, -, EpicsConfig
    274264        Menu(name='Tab'),       # Create, Delete, Change, -, Create Row
    275         Menu(HelpAction, Separator, AboutAction, name='Help'),
     265        Menu(HelpAction, Separator(), AboutAction, name='Help'),
    276266    )
    277267   
Note: See TracChangeset for help on using the changeset viewer.