Rev 638 | Rev 640 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 638 | Rev 639 | ||
---|---|---|---|
Line 292... | Line 292... | ||
292 | self.frame_1_menubar = wx.MenuBar() |
292 | self.frame_1_menubar = wx.MenuBar() |
293 | wxglade_tmp_menu = wx.Menu() |
293 | wxglade_tmp_menu = wx.Menu() |
294 | wxglade_tmp_menu.Append(101, "Settings", "", wx.ITEM_NORMAL) |
294 | wxglade_tmp_menu.Append(101, "Settings", "", wx.ITEM_NORMAL) |
295 | wxglade_tmp_menu.AppendSeparator() |
295 | wxglade_tmp_menu.AppendSeparator() |
296 | wxglade_tmp_menu.Append(150, "Exit", "", wx.ITEM_NORMAL) |
296 | wxglade_tmp_menu.Append(150, "Exit", "", wx.ITEM_NORMAL) |
297 | self.frame_1_menubar.Append(wxglade_tmp_menu, "File") |
297 | self.frame_1_menubar.Append(wxglade_tmp_menu, "&File") |
298 | wxglade_tmp_menu = wx.Menu() |
298 | wxglade_tmp_menu = wx.Menu() |
299 | wxglade_tmp_menu.Append(301, "Clear All", "", wx.ITEM_NORMAL) |
299 | wxglade_tmp_menu.Append(301, "Delete All\tAlt+D", "", wx.ITEM_NORMAL) |
300 | wxglade_tmp_menu.Append(302, "Clear Selected", "", wx.ITEM_NORMAL) |
300 | wxglade_tmp_menu.Append(302, "Delete Selected\tCtrl+D", "", wx.ITEM_NORMAL) |
301 | wxglade_tmp_menu.AppendSeparator() |
301 | wxglade_tmp_menu.AppendSeparator() |
302 | wxglade_tmp_menu.Append(310, "Select All", "", wx.ITEM_NORMAL) |
302 | wxglade_tmp_menu.Append(310, "Select All\tCtrl+A", "", wx.ITEM_NORMAL) |
303 | wxglade_tmp_menu.AppendSeparator() |
303 | wxglade_tmp_menu.AppendSeparator() |
304 | wxglade_tmp_menu.Append(303, "Load", "", wx.ITEM_NORMAL) |
304 | wxglade_tmp_menu.Append(303, "Load\tCtrl+L", "", wx.ITEM_NORMAL) |
305 | wxglade_tmp_menu.Append(304, "Save", "", wx.ITEM_NORMAL) |
305 | wxglade_tmp_menu.Append(304, "Save\tCtrl+S", "", wx.ITEM_NORMAL) |
306 | self.frame_1_menubar.Append(wxglade_tmp_menu, "TestSet") |
306 | self.frame_1_menubar.Append(wxglade_tmp_menu, "TestSet") |
307 | wxglade_tmp_menu = wx.Menu() |
307 | wxglade_tmp_menu = wx.Menu() |
308 | wxglade_tmp_menu.Append(401, "Flash VibTest FC software", "", wx.ITEM_NORMAL) |
308 | wxglade_tmp_menu.Append(401, "Flash VibTest FC software", "", wx.ITEM_NORMAL) |
309 | wxglade_tmp_menu.Append(402, "Restore original FC software", "", wx.ITEM_NORMAL) |
309 | wxglade_tmp_menu.Append(402, "Restore original FC software", "", wx.ITEM_NORMAL) |
310 | self.frame_1_menubar.Append(wxglade_tmp_menu, "MK") |
310 | self.frame_1_menubar.Append(wxglade_tmp_menu, "MK") |
Line 714... | Line 714... | ||
714 | self.app.removeTest(idx) |
714 | self.app.removeTest(idx) |
715 | self.TestListCtrl.DeleteItem(idx) |
715 | self.TestListCtrl.DeleteItem(idx) |
Line 716... | Line 716... | ||
716 | 716 | ||
- | 717 | ||
- | 718 | def onClear(self, event): # wxGlade: MainFrame.<event_handler> |
|
- | 719 | dial = wx.MessageDialog(None, 'Clear ALL tests?', 'Question', |
|
717 | 720 | wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) |
|
718 | def onClear(self, event): # wxGlade: MainFrame.<event_handler> |
721 | if dial.ShowModal() == wx.ID_YES: |
719 | print "Clear all tests" |
722 | print "Clear all tests" |
720 | for i in range(len(self.app.VibTests)-1, -1, -1): |
723 | for i in range(len(self.app.VibTests)-1, -1, -1): |
Line 721... | Line 724... | ||
721 | self._removeTest(i) |
724 | self._removeTest(i) |
- | 725 | self.drawGraph() |
|
- | 726 | ||
- | 727 | ||
722 | self.drawGraph() |
728 | def onClearSelected(self, event): # wxGlade: MainFrame.<event_handler> |
723 | 729 | dial = wx.MessageDialog(None, 'Clear Selected tests?', 'Question', |
|
724 | 730 | wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) |
|
725 | def onClearSelected(self, event): # wxGlade: MainFrame.<event_handler> |
731 | if dial.ShowModal() == wx.ID_YES: |
Line 726... | Line 732... | ||
726 | while True: |
732 | while True: |
727 | idx = self.TestListCtrl.GetFirstSelected() |
733 | idx = self.TestListCtrl.GetFirstSelected() |