Changeset acc254f in sasview for calculatorview/src/sans/perspectives/calculator
- Timestamp:
- Jun 25, 2012 4:32:58 PM (13 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:
- 1da574d
- Parents:
- 5a5bb29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/data_operator.py
r5a5bb29 racc254f 167 167 if ON_MAC: 168 168 ctrl.Enable(enable) 169 chi dren = ctrl.GetChildren()169 children = ctrl.GetChildren() 170 170 if len(children) > 0: 171 171 ctrl.GetChildren()[0].SetBackGroundColour(\ … … 217 217 """ 218 218 if ON_MAC: 219 chi dren = ctrl.GetChildren()219 children = ctrl.GetChildren() 220 220 if len(children) > 0: 221 221 ctrl.GetChildren()[0].SetBackgroundColour(color) … … 252 252 self.output.name = str(self.data_namectr.GetValue()) 253 253 self.draw_output(self.output) 254 self.name_sizer.Layout() 254 255 255 256 def on_select_data1(self, event=None): … … 297 298 item = event.GetEventObject() 298 299 text = item.GetValue().strip().lower() 300 pos = item.GetCurrentSelection() 301 data = item.GetClientData(pos) 299 302 self._show_numctrl(self.numberctr, text=='number') 300 301 pos = item.GetSelection()302 data = item.GetClientData(pos)303 303 content = "?" 304 304 if not (self.numberctr.IsShown() and self.numberctr.IsEnabled()): … … 319 319 data = None 320 320 item.SetClientData(pos, content) 321 321 322 self.put_text_pic(self.data2_pic, content) 322 323 self.check_data_inputs() … … 333 334 pic.add_text() 334 335 pic.draw() 336 self.name_sizer.Layout() 335 337 336 338 def check_data_inputs(self): … … 475 477 pos_pre1 = self.data1_cbox.GetCurrentSelection() 476 478 pos_pre2 = self.data2_cbox.GetCurrentSelection() 477 current1 = self.data1_cbox.Get Value()478 current2 = self.data2_cbox.Get Value()479 current1 = self.data1_cbox.GetLabel() 480 current2 = self.data2_cbox.GetLabel() 479 481 if pos_pre1 < 0: 480 482 pos_pre1 = 0
Note: See TracChangeset
for help on using the changeset viewer.