Dialogs.py
changeset 304 2df3d31d8059
parent 285 ed45a7118af1
child 306 eecc53781498
equal deleted inserted replaced
303:b4583cb86f18 304:2df3d31d8059
   502 
   502 
   503         self.staticText5 = wx.StaticText(id=ID_VARIABLEPROPERTIESDIALOGSTATICTEXT5,
   503         self.staticText5 = wx.StaticText(id=ID_VARIABLEPROPERTIESDIALOGSTATICTEXT5,
   504               label='Preview:', name='staticText5', parent=self,
   504               label='Preview:', name='staticText5', parent=self,
   505               pos=wx.Point(0, 0), size=wx.Size(0, 17), style=0)
   505               pos=wx.Point(0, 0), size=wx.Size(0, 17), style=0)
   506 
   506 
   507         self.Class = wx.Choice(id=ID_VARIABLEPROPERTIESDIALOGCLASS,
   507         self.Class = wx.ComboBox(id=ID_VARIABLEPROPERTIESDIALOGCLASS,
   508               name='Class', parent=self, pos=wx.Point(0, 0),
   508               name='Class', parent=self, pos=wx.Point(0, 0),
   509               size=wx.Size(0, 24), style=0)
   509               size=wx.Size(0, 24), style=wx.CB_READONLY)
   510         self.Bind(wx.EVT_CHOICE, self.OnClassChanged, id=ID_VARIABLEPROPERTIESDIALOGCLASS)
   510         self.Bind(wx.EVT_COMBOBOX, self.OnClassChanged, id=ID_VARIABLEPROPERTIESDIALOGCLASS)
   511         
   511         
   512         self.VariableName = wx.ListBox(id=ID_VARIABLEPROPERTIESDIALOGNAME,
   512         self.VariableName = wx.ListBox(id=ID_VARIABLEPROPERTIESDIALOGNAME,
   513               name='Name', parent=self, pos=wx.Point(0, 0),
   513               name='Name', parent=self, pos=wx.Point(0, 0),
   514               size=wx.Size(0, 90), style=wx.LB_SINGLE)
   514               size=wx.Size(0, 90), style=wx.LB_SINGLE)
   515         self.Bind(wx.EVT_LISTBOX, self.OnNameChanged, id=ID_VARIABLEPROPERTIESDIALOGNAME)
   515         self.Bind(wx.EVT_LISTBOX, self.OnNameChanged, id=ID_VARIABLEPROPERTIESDIALOGNAME)
  1010         self.radioButton6 = wx.RadioButton(id=ID_LDELEMENTDIALOGRADIOBUTTON6,
  1010         self.radioButton6 = wx.RadioButton(id=ID_LDELEMENTDIALOGRADIOBUTTON6,
  1011               label="Falling Edge", name='radioButton6', parent=self, 
  1011               label="Falling Edge", name='radioButton6', parent=self, 
  1012               pos=wx.Point(0, 0), size=wx.Size(0, 24), style=0)
  1012               pos=wx.Point(0, 0), size=wx.Size(0, 24), style=0)
  1013         self.Bind(wx.EVT_RADIOBUTTON, self.OnTypeChanged, id=ID_LDELEMENTDIALOGRADIOBUTTON6)
  1013         self.Bind(wx.EVT_RADIOBUTTON, self.OnTypeChanged, id=ID_LDELEMENTDIALOGRADIOBUTTON6)
  1014 
  1014 
  1015         self.ElementName = wx.Choice(id=ID_LDELEMENTDIALOGNAME,
  1015         self.ElementName = wx.ComboBox(id=ID_LDELEMENTDIALOGNAME,
  1016               name='Name', parent=self, pos=wx.Point(0, 0),
  1016               name='Name', parent=self, pos=wx.Point(0, 0),
  1017               size=wx.Size(0, 24), style=0)
  1017               size=wx.Size(0, 24), style=wx.CB_READONLY)
  1018         self.Bind(wx.EVT_CHOICE, self.OnNameChanged, id=ID_LDELEMENTDIALOGNAME)
  1018         self.Bind(wx.EVT_COMBOBOX, self.OnNameChanged, id=ID_LDELEMENTDIALOGNAME)
  1019 
  1019 
  1020         self.Preview = wx.Panel(id=ID_LDELEMENTDIALOGPREVIEW,
  1020         self.Preview = wx.Panel(id=ID_LDELEMENTDIALOGPREVIEW,
  1021               name='Preview', parent=self, pos=wx.Point(0, 0),
  1021               name='Preview', parent=self, pos=wx.Point(0, 0),
  1022               size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL|wx.SIMPLE_BORDER)
  1022               size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL|wx.SIMPLE_BORDER)
  1023         self.Preview.SetBackgroundColour(wx.Colour(255,255,255))
  1023         self.Preview.SetBackgroundColour(wx.Colour(255,255,255))
  1665               label='Reference', name='radioButton1', parent=self,
  1665               label='Reference', name='radioButton1', parent=self,
  1666               pos=wx.Point(0, 0), size=wx.Size(0, 24), style=0)
  1666               pos=wx.Point(0, 0), size=wx.Size(0, 24), style=0)
  1667         self.Bind(wx.EVT_RADIOBUTTON, self.OnTypeChanged, id=ID_TRANSITIONCONTENTDIALOGRADIOBUTTON1)
  1667         self.Bind(wx.EVT_RADIOBUTTON, self.OnTypeChanged, id=ID_TRANSITIONCONTENTDIALOGRADIOBUTTON1)
  1668         self.radioButton1.SetValue(True)
  1668         self.radioButton1.SetValue(True)
  1669 
  1669 
  1670         self.Reference = wx.Choice(id=ID_TRANSITIONCONTENTDIALOGREFERENCE,
  1670         self.Reference = wx.ComboBox(id=ID_TRANSITIONCONTENTDIALOGREFERENCE,
  1671               name='Reference', parent=self, pos=wx.Point(0, 0), 
  1671               name='Reference', parent=self, pos=wx.Point(0, 0), 
  1672               size=wx.Size(0, 24), style=0)
  1672               size=wx.Size(0, 24), style=wx.CB_READONLY)
  1673         self.Bind(wx.EVT_CHOICE, self.OnReferenceChanged, id=ID_TRANSITIONCONTENTDIALOGREFERENCE)
  1673         self.Bind(wx.EVT_COMBOBOX, self.OnReferenceChanged, id=ID_TRANSITIONCONTENTDIALOGREFERENCE)
  1674 
  1674 
  1675         self.radioButton2 = wx.RadioButton(id=ID_TRANSITIONCONTENTDIALOGRADIOBUTTON2,
  1675         self.radioButton2 = wx.RadioButton(id=ID_TRANSITIONCONTENTDIALOGRADIOBUTTON2,
  1676               label='Inline', name='radioButton2', parent=self,
  1676               label='Inline', name='radioButton2', parent=self,
  1677               pos=wx.Point(0, 0), size=wx.Size(0, 24), style=0)
  1677               pos=wx.Point(0, 0), size=wx.Size(0, 24), style=0)
  1678         self.Bind(wx.EVT_RADIOBUTTON, self.OnTypeChanged, id=ID_TRANSITIONCONTENTDIALOGRADIOBUTTON2)
  1678         self.Bind(wx.EVT_RADIOBUTTON, self.OnTypeChanged, id=ID_TRANSITIONCONTENTDIALOGRADIOBUTTON2)