equal
deleted
inserted
replaced
224 parent.AppendSeparator() |
224 parent.AppendSeparator() |
225 if self.ModeSolo: |
225 if self.ModeSolo: |
226 AppendMenu(parent, help='', id=wx.ID_EXIT, |
226 AppendMenu(parent, help='', id=wx.ID_EXIT, |
227 kind=wx.ITEM_NORMAL, text=u'Quit\tCTRL+Q') |
227 kind=wx.ITEM_NORMAL, text=u'Quit\tCTRL+Q') |
228 else: |
228 else: |
229 AppendMenu(parent, help='', id=wx.ID_CLOSE_ALL, |
229 AppendMenu(parent, help='', id=wx.ID_STOP, |
230 kind=wx.ITEM_NORMAL, text=u'Close\tCTRL+Q') |
230 kind=wx.ITEM_NORMAL, text=u'Close\tCTRL+Q') |
231 |
231 |
232 if self.ModeSolo: |
232 if self.ModeSolo: |
233 self.Bind(wx.EVT_MENU, self.OnNewProjectMenu, id=wx.ID_NEW) |
233 self.Bind(wx.EVT_MENU, self.OnNewProjectMenu, id=wx.ID_NEW) |
234 self.Bind(wx.EVT_MENU, self.OnOpenProjectMenu, id=wx.ID_OPEN) |
234 self.Bind(wx.EVT_MENU, self.OnOpenProjectMenu, id=wx.ID_OPEN) |
247 if not self.Debug: |
247 if not self.Debug: |
248 self.Bind(wx.EVT_MENU, self.OnPropertiesMenu, id=wx.ID_PROPERTIES) |
248 self.Bind(wx.EVT_MENU, self.OnPropertiesMenu, id=wx.ID_PROPERTIES) |
249 if self.ModeSolo: |
249 if self.ModeSolo: |
250 self.Bind(wx.EVT_MENU, self.OnQuitMenu, id=wx.ID_EXIT) |
250 self.Bind(wx.EVT_MENU, self.OnQuitMenu, id=wx.ID_EXIT) |
251 else: |
251 else: |
252 self.Bind(wx.EVT_MENU, self.OnQuitMenu, id=wx.ID_CLOSE_ALL) |
252 self.Bind(wx.EVT_MENU, self.OnQuitMenu, id=wx.ID_STOP) |
253 |
253 |
254 def _init_coll_EditMenu_Items(self, parent): |
254 def _init_coll_EditMenu_Items(self, parent): |
255 AppendMenu(parent, help='', id=wx.ID_REFRESH, |
255 AppendMenu(parent, help='', id=wx.ID_REFRESH, |
256 kind=wx.ITEM_NORMAL, text=u'Refresh\tCTRL+R') |
256 kind=wx.ITEM_NORMAL, text=u'Refresh\tCTRL+R') |
257 if not self.Debug: |
257 if not self.Debug: |
2871 if id is not None: |
2871 if id is not None: |
2872 event(self, id, function) |
2872 event(self, id, function) |
2873 else: |
2873 else: |
2874 event(self, function) |
2874 event(self, function) |
2875 |
2875 |
2876 |
|
2877 def __init__(self, parent, message, caption = "Please enter text", defaultValue = "", |
2876 def __init__(self, parent, message, caption = "Please enter text", defaultValue = "", |
2878 style = wx.OK|wx.CANCEL|wx.CENTRE, pos = wx.DefaultPosition): |
2877 style = wx.OK|wx.CANCEL|wx.CENTRE, pos = wx.DefaultPosition): |
2879 wx.TextEntryDialog.__init__(self, parent, message, caption, defaultValue, style, pos) |
2878 wx.TextEntryDialog.__init__(self, parent, message, caption, defaultValue, style, pos) |
2880 |
2879 |
2881 self.DataTypeNames = [] |
2880 self.DataTypeNames = [] |