Changeset b2aef1c in sasview for sansguiframe
- Timestamp:
- Sep 15, 2011 11:22:19 AM (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:
- 6c08ba5
- Parents:
- 7ee79cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/data_panel.py
r0b0b7de rb2aef1c 422 422 if data is not None: 423 423 data_name = str(data.name) 424 data_title = str(data.title) 425 data_run = str(data.run) 424 426 data_class = data.__class__.__name__ 425 427 path = dstate.get_path() … … 434 436 data_c.Check(True) 435 437 d_i_c = self.tree_ctrl.AppendItem(data_c, 'Info') 438 d_t_c = self.tree_ctrl.AppendItem(d_i_c, 439 'Title: %s' % data_title) 440 r_n_c = self.tree_ctrl.AppendItem(d_i_c, 441 'Run: %s' % data_run) 436 442 i_c_c = self.tree_ctrl.AppendItem(d_i_c, 437 443 'Type: %s' % data_class) … … 450 456 self.list_cb_data[state_id] = [data_c, 451 457 d_i_c, 458 d_t_c, 459 r_n_c, 452 460 i_c_c, 453 461 p_c_c, … … 457 465 data_ctrl_list = self.list_cb_data[state_id] 458 466 #This state is already display replace it contains 459 data_c, d_i_c, i_c_c, p_c_c, d_p_c, t_c = data_ctrl_list467 data_c, d_i_c, d_t_c, r_n_c, i_c_c, p_c_c, d_p_c, t_c = data_ctrl_list 460 468 self.tree_ctrl.SetItemText(data_c, data_name) 461 469 temp = (data_id, data_class, state_id) … … 479 487 """ 480 488 for item in self.list_cb_data.values(): 481 data_ctrl, _, _, _, _, _ = item489 data_ctrl, _, _, _, _, _,_, _ = item 482 490 self.tree_ctrl.CheckItem(data_ctrl, False) 483 491 self.enable_append() … … 499 507 else: 500 508 item = self.list_cb_data[state_id] 501 data_c, _, _, _, _, _ = item509 data_c, _, _, _, _, _, _, _ = item 502 510 root = data_c 503 511 tree = self.tree_ctrl … … 592 600 theory_to_plot = [] 593 601 for value in self.list_cb_data.values(): 594 item, _, _, _, _, _ = value602 item, _, _, _, _, _, _, _ = value 595 603 if item.IsChecked(): 596 604 data_id, _, state_id = self.tree_ctrl.GetItemPyData(item) … … 613 621 """ 614 622 for item in self.list_cb_data.values(): 615 data_c, _, _, _, _, theory_child = item623 data_c, _, _, _, _, _, _, theory_child = item 616 624 data_id, _, state_id = self.tree_ctrl.GetItemPyData(data_c) 617 625 if id == data_id: … … 655 663 #remove data from treectrl 656 664 for d_key, item in self.list_cb_data.iteritems(): 657 data_c, d_i_c, i_c_c, p_c_c, d_p_c, t_c = item665 data_c, d_i_c, d_t_c, r_n_c, i_c_c, p_c_c, d_p_c, t_c = item 658 666 if data_c.IsChecked(): 659 667 self.tree_ctrl.Delete(data_c)
Note: See TracChangeset
for help on using the changeset viewer.