Changeset 4369
- Timestamp:
- Mar 14, 2020 4:46:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r4360 r4369 509 509 item = parent.Append(wx.ID_ANY,'Delete tree items','Delete selected data items from data tree') 510 510 self.Bind(wx.EVT_MENU, self.OnDataDelete, id=item.GetId()) 511 item = parent.Append(wx.ID_ANY,'Delete plots','Delete selected plots') 512 self.Bind(wx.EVT_MENU, self.OnPlotDelete, id=item.GetId()) 511 513 expandmenu = wx.Menu() 512 514 item = parent.AppendSubMenu(expandmenu,'Expand tree items', … … 3868 3870 finally: 3869 3871 dlg.Destroy() 3872 3873 def OnPlotDelete(self,event): 3874 '''Delete one or more plots from plot window. Called by the 3875 Data/DeletePlots menu 3876 ''' 3877 plotNames = self.G2plotNB.plotList 3878 if len(plotNames): 3879 dlg = G2G.G2MultiChoiceDialog(self, 'Which plots to delete?', 'Delete plots', plotNames, wx.CHOICEDLG_STYLE) 3880 try: 3881 if dlg.ShowModal() == wx.ID_OK: 3882 result = dlg.GetSelections() 3883 result.sort(reverse=True) 3884 for i in result: 3885 self.G2plotNB.Delete(plotNames[i]) 3886 finally: 3887 dlg.Destroy() 3870 3888 3871 3889 def OnFileReopen(self, event): … … 6417 6435 G2plt.PlotSelectedSequence(G2frame,cols,GetColumnInfo,SelectXaxis) 6418 6436 6419 # def OnReOrgSelSeq(event):6420 # 'Reorder the columns -- probably not fully implemented'6421 # G2G.GetItemOrder(G2frame,VaryListChanges,vallookup,posdict)6422 # UpdateSeqResults(G2frame,data,G2frame.dataDisplay.GetSize()) # redisplay variables6423 6424 6437 def OnSaveSelSeqCSV(event): 6425 6438 'export the selected columns to a .csv file from menu command'
Note: See TracChangeset
for help on using the changeset viewer.