- Timestamp:
- May 2, 2011 9:29:58 AM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 339b563
- Parents:
- 6f23daf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_panel.py
rc461ebe r2567003 47 47 PANEL_HEIGHT = 700 48 48 CBOX_WIDTH = 140 49 BUTTON_WIDTH = 80 49 50 STYLE_FLAG =wx.RAISED_BORDER|CT.TR_HAS_BUTTONS| CT.TR_HIDE_ROOT|\ 50 51 wx.WANTS_CHARS|CT.TR_HAS_VARIABLE_ROW_HEIGHT … … 226 227 """ 227 228 w, _ = self.GetSize() 228 self.bt_add = wx.Button(self, wx.NewId(), "Load Data") 229 self.bt_add = wx.Button(self, wx.NewId(), "Load Data", 230 size=(BUTTON_WIDTH, -1)) 229 231 self.bt_add.SetToolTipString("Load data files") 230 232 wx.EVT_BUTTON(self, self.bt_add.GetId(), self._load_data) 231 #self.bt_remove = wx.Button(self, wx.NewId(), "Remove Data") 233 #self.bt_remove = wx.Button(self, wx.NewId(), "Remove Data", 234 # size=(BUTTON_WIDTH, -1)) 232 235 #self.bt_remove.SetToolTipString("Remove data from the application") 233 236 #wx.EVT_BUTTON(self, self.bt_remove.GetId(), self.on_remove) 234 self.bt_import = wx.Button(self, wx.NewId(), "Send To") 237 self.bt_import = wx.Button(self, wx.NewId(), "Send To", 238 size=(BUTTON_WIDTH, -1)) 235 239 self.bt_import.SetToolTipString("Send set of Data to active perspective") 236 240 wx.EVT_BUTTON(self, self.bt_import.GetId(), self.on_import) … … 240 244 self._on_perspective_selection) 241 245 242 self.bt_append_plot = wx.Button(self, wx.NewId(), "Append Plot To") 246 self.bt_append_plot = wx.Button(self, wx.NewId(), "Append Plot To", 247 size=(BUTTON_WIDTH, -1)) 243 248 self.bt_append_plot.SetToolTipString("Plot the selected data in the active panel") 244 249 wx.EVT_BUTTON(self, self.bt_append_plot.GetId(), self.on_append_plot) 245 250 246 self.bt_plot = wx.Button(self, wx.NewId(), "New Plot") 251 self.bt_plot = wx.Button(self, wx.NewId(), "New Plot", 252 size=(BUTTON_WIDTH, -1)) 247 253 self.bt_plot.SetToolTipString("To trigger plotting") 248 254 wx.EVT_BUTTON(self, self.bt_plot.GetId(), self.on_plot) 249 255 250 self.bt_freeze = wx.Button(self, wx.NewId(), "Freeze Theory") 256 self.bt_freeze = wx.Button(self, wx.NewId(), "Freeze Theory", 257 size=(BUTTON_WIDTH, -1)) 251 258 self.bt_freeze.SetToolTipString("To trigger freeze a theory") 252 259 wx.EVT_BUTTON(self, self.bt_freeze.GetId(), self.on_freeze) … … 259 266 self.sizer3.AddMany([(self.bt_add), 260 267 ((10, 10)), 261 (self.bt_import ),268 (self.bt_import, 0, wx.EXPAND|wx.RIGHT, 5), 262 269 (self.perspective_cbox, wx.EXPAND), 263 270 (self.bt_append_plot),
Note: See TracChangeset
for help on using the changeset viewer.