Changeset dc0cfa4 in sasview for sansguiframe
- Timestamp:
- Apr 13, 2012 9:37:05 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:
- 5625551
- Parents:
- 6d8bad4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/data_panel.py
r0aca693 rdc0cfa4 11 11 This module provides Graphic interface for the data_manager module. 12 12 """ 13 import os14 13 import wx 15 14 from wx.build import build_options 16 15 # Check version 17 toks = wx.__version__.split('.')16 toks = str(wx.__version__).split('.') 18 17 if int(toks[1]) < 9: 19 18 if int(toks[2]) < 12: … … 24 23 wx_version = 900 25 24 import sys 26 import warnings27 import logging28 25 from wx.lib.scrolledpanel import ScrolledPanel 29 26 import wx.lib.agw.customtreectrl as CT … … 64 61 IS_MAC = True 65 62 66 STYLE_FLAG = wx.RAISED_BORDER|CT.TR_HAS_BUTTONS| CT.TR_HIDE_ROOT|\63 STYLE_FLAG = wx.RAISED_BORDER|CT.TR_HAS_BUTTONS| CT.TR_HIDE_ROOT|\ 67 64 wx.WANTS_CHARS|CT.TR_HAS_VARIABLE_ROW_HEIGHT 68 65 … … 157 154 ## Create context menu for page 158 155 self.data_menu = None 156 self.popUpMenu = None 159 157 160 158 self.owner = None … … 1234 1232 temp.append(data) 1235 1233 return temp 1236 1237 def _count_selected_data(self, event): 1238 """ 1239 count selected data 1240 """ 1241 if event.GetEventObject().GetValue(): 1242 self._nb_selected_data += 1 1243 else: 1244 self._nb_selected_data -= 1 1245 select_data_text = " %s Data selected.\n" % str(self._nb_selected_data) 1246 self._data_text_ctrl.SetLabel(select_data_text) 1247 if self._nb_selected_data <= self._max_data: 1248 self._data_text_ctrl.SetForegroundColour('blue') 1249 else: 1250 self._data_text_ctrl.SetForegroundColour('red') 1251 1252 1253 1234 1254 1235 class DataFrame(wx.Frame): 1255 1236 ## Internal name for the AUI manager … … 1293 1274 self.msg += "params : \n" 1294 1275 self.msg += "name value\n" 1295 return msg 1276 return self.msg 1277 1296 1278 def set_data_state(data=None, path=None, theory=None, state=None): 1297 1279 dstate = DataState(data=data)
Note: See TracChangeset
for help on using the changeset viewer.