- Timestamp:
- Feb 11, 2011 11:56:12 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:
- d20771f
- Parents:
- c03b780
- Location:
- guiframe
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r75fbd17 r568658b 949 949 return 950 950 try: 951 temp = self.loader.load(path, extension) 952 if temp.__class__.__name__ == "list": 953 for item in temp: 954 data = self.create_gui_data(item, path) 951 if extension == '.svs': 952 for plug in self.plugins: 953 temp = self.loader.load(path) 954 if temp.__class__.__name__ == "list": 955 for item in temp: 956 data = self.create_gui_data(item, path) 957 output.append(data) 958 else: 959 data = self.create_gui_data(temp, path) 960 output.append(data) 961 962 message = "Loading File..." + str(basename) + "\n" 963 self.load_update(output=output, message=message) 964 else: 965 temp = self.loader.load(path, extension) 966 if temp.__class__.__name__ == "list": 967 for item in temp: 968 data = self.create_gui_data(item, path) 969 output.append(data) 970 else: 971 data = self.create_gui_data(temp, path) 955 972 output.append(data) 956 else:957 data = self.create_gui_data(temp, path)958 output.append(data)959 973 message = "Loading File..." + str(basename) + "\n" 960 974 self.load_update(output=output, message=message) … … 1367 1381 set the current active perspective 1368 1382 """ 1369 print "set_current_perspective", perspective1370 1383 self._current_perspective = perspective 1371 1384 name = "No current Application selected" … … 1375 1388 if hasattr(panel, 'CENTER_PANE') and panel.CENTER_PANE: 1376 1389 for name in self._current_perspective.get_perspective(): 1377 print "current",name.lower(),panel.window_name.lower(), name == panel.window_name1378 1390 if name == panel.window_name: 1379 1391 panel.on_set_focus(event=None) 1380 print "panel", name, panel.window_name, panel.window_caption1381 1392 break 1382 1393 … … 1385 1396 self._data_panel.set_active_perspective(name) 1386 1397 self._check_applications_menu() 1387 ##update tool bar 1388 #if self._toolbar is not None: 1389 # self._update_toolbar_helper() 1390 1398 1391 1399 def _check_applications_menu(self): 1392 1400 """ … … 1700 1708 if len(sys.argv) > 1 and '--platform' in sys.argv[1:]: 1701 1709 w, h = wx.DisplaySize() # size includes task bar area 1702 print "*** Reported screen size including taskbar is %d x %d"%(w, h)1703 print "*** Reported screen size excluding taskbar is %d x %d"%(x, y)1704 1705 1710 if x > 1920: x = 1280 # display on left side, not centered on screen 1706 1711 if x > window_width: xpos = (x - window_width)/2 -
guiframe/gui_toolbar.py
rba924ed r568658b 167 167 self.button_application.SetLabel(str(application_name)) 168 168 self.button_panel.SetLabel(str(panel_name)) 169 print "update_button", application_name, panel_name170 169 171 170 def update_toolbar(self, panel=None):
Note: See TracChangeset
for help on using the changeset viewer.