VariablePanel.py
changeset 564 5024d42e1050
parent 561 5c8fa95eb834
child 566 6014ef82a98a
equal deleted inserted replaced
563:3f92a5e18804 564:5024d42e1050
   960               pos=wx.Point(0, 0), size=wx.Size(0, 0), style=wx.TE_PROCESS_ENTER)
   960               pos=wx.Point(0, 0), size=wx.Size(0, 0), style=wx.TE_PROCESS_ENTER)
   961         self.Location.Bind(wx.EVT_KEY_DOWN, self.OnLocationChar)
   961         self.Location.Bind(wx.EVT_KEY_DOWN, self.OnLocationChar)
   962         
   962         
   963         # create browse button
   963         # create browse button
   964         self.BrowseButton = wx.Button(id=-1, label='...', 
   964         self.BrowseButton = wx.Button(id=-1, label='...', 
   965               name='staticText1', parent=self, pos=wx.Point(0, 0), 
   965               name='BrowseButton', parent=self, pos=wx.Point(0, 0), 
   966               size=wx.Size(30, 0), style=0)
   966               size=wx.Size(30, 0), style=0)
   967         self.BrowseButton.Bind(wx.EVT_BUTTON, self.OnBrowseButtonClick)
   967         self.BrowseButton.Bind(wx.EVT_BUTTON, self.OnBrowseButtonClick)
   968 
   968 
   969         self.Bind(wx.EVT_SIZE, self.OnSize)
   969         self.Bind(wx.EVT_SIZE, self.OnSize)
   970         
   970         
   971         self._init_sizers()
   971         self._init_sizers()
   972 
   972 
   973     '''
   973     '''
   974     Custom cell editor control with a text box and a button that launches
   974     Custom cell editor control with a text box and a button that launches
   975     the BrowseVariableLocationsDialog.
   975     the BrowseLocationsDialog.
   976     '''
   976     '''
   977     def __init__(self, parent, locations):
   977     def __init__(self, parent, locations):
   978         self._init_ctrls(parent)
   978         self._init_ctrls(parent)
   979         self.Locations = locations
   979         self.Locations = locations
   980         self.VarType = None
   980         self.VarType = None
  1058         self.CellControl.SetDimensions(rect.x + 1, rect.y,
  1058         self.CellControl.SetDimensions(rect.x + 1, rect.y,
  1059                                         rect.width, rect.height,
  1059                                         rect.width, rect.height,
  1060                                         wx.SIZE_ALLOW_MINUS_ONE)
  1060                                         wx.SIZE_ALLOW_MINUS_ONE)
  1061 
  1061 
  1062     def Clone(self):
  1062     def Clone(self):
  1063         return LocationCellEditor(self.Table, self.Locations)
  1063         return LocationCellEditor(self.Table, self.Controler)
  1064 
  1064 
  1065 def GetDirChoiceOptions():
  1065 def GetDirChoiceOptions():
  1066     _ = lambda x : x
  1066     _ = lambda x : x
  1067     return [(_("All"), [LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY]), 
  1067     return [(_("All"), [LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY]), 
  1068             (_("Input"), [LOCATION_VAR_INPUT]), 
  1068             (_("Input"), [LOCATION_VAR_INPUT]),