Changeset dc0cfa4 in sasview for sansguiframe


Ignore:
Timestamp:
Apr 13, 2012 9:37:05 AM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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
Message:

Fixing code style problems and bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/data_panel.py

    r0aca693 rdc0cfa4  
    1111This module provides Graphic interface for the data_manager module. 
    1212""" 
    13 import os 
    1413import wx 
    1514from wx.build import build_options 
    1615# Check version 
    17 toks = wx.__version__.split('.') 
     16toks = str(wx.__version__).split('.') 
    1817if int(toks[1]) < 9: 
    1918    if int(toks[2]) < 12: 
     
    2423    wx_version = 900 
    2524import sys 
    26 import warnings 
    27 import logging 
    2825from wx.lib.scrolledpanel import ScrolledPanel 
    2926import  wx.lib.agw.customtreectrl as CT 
     
    6461    IS_MAC = True 
    6562 
    66 STYLE_FLAG =wx.RAISED_BORDER|CT.TR_HAS_BUTTONS| CT.TR_HIDE_ROOT|\ 
     63STYLE_FLAG = wx.RAISED_BORDER|CT.TR_HAS_BUTTONS| CT.TR_HIDE_ROOT|\ 
    6764                    wx.WANTS_CHARS|CT.TR_HAS_VARIABLE_ROW_HEIGHT 
    6865                     
     
    157154        ## Create context menu for page 
    158155        self.data_menu = None 
     156        self.popUpMenu = None 
    159157        
    160158        self.owner = None 
     
    12341232                temp.append(data) 
    12351233        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             
    12541235class DataFrame(wx.Frame): 
    12551236    ## Internal name for the AUI manager 
     
    12931274        self.msg += "params : \n" 
    12941275        self.msg += "name  value\n" 
    1295         return msg 
     1276        return self.msg 
     1277     
    12961278def set_data_state(data=None, path=None, theory=None, state=None): 
    12971279    dstate = DataState(data=data) 
Note: See TracChangeset for help on using the changeset viewer.