PLCOpenEditor.py
changeset 313 9266d1e6e3d4
parent 311 3e22e53878b8
child 315 20e169c8efe9
equal deleted inserted replaced
312:eab54dae434d 313:9266d1e6e3d4
  2826               label='Language (optional):', name='staticText10', parent=self.MiscellaneousPanel,
  2826               label='Language (optional):', name='staticText10', parent=self.MiscellaneousPanel,
  2827               pos=wx.Point(0, 0), size=wx.Size(200, 17), style=0)
  2827               pos=wx.Point(0, 0), size=wx.Size(200, 17), style=0)
  2828 
  2828 
  2829         self.Language = wx.ComboBox(id=ID_PROJECTDIALOGLANGUAGE,
  2829         self.Language = wx.ComboBox(id=ID_PROJECTDIALOGLANGUAGE,
  2830               name='Language', parent=self.MiscellaneousPanel, pos=wx.Point(0, 0),
  2830               name='Language', parent=self.MiscellaneousPanel, pos=wx.Point(0, 0),
  2831               size=wx.Size(0, 24), style=wx.CB_READONLY)
  2831               size=wx.Size(0, 28), style=wx.CB_READONLY)
  2832 
  2832 
  2833         self.staticText11 = wx.StaticText(id=ID_PROJECTDIALOGSTATICTEXT11,
  2833         self.staticText11 = wx.StaticText(id=ID_PROJECTDIALOGSTATICTEXT11,
  2834               label='Content Description (optional):', name='staticText11', parent=self.MiscellaneousPanel,
  2834               label='Content Description (optional):', name='staticText11', parent=self.MiscellaneousPanel,
  2835               pos=wx.Point(0, 0), size=wx.Size(200, 17), style=0)
  2835               pos=wx.Point(0, 0), size=wx.Size(200, 17), style=0)
  2836 
  2836 
  3054               label='POU Type:', name='staticText2', parent=self,
  3054               label='POU Type:', name='staticText2', parent=self,
  3055               pos=wx.Point(0, 0), size=wx.Size(100, 17), style=0)
  3055               pos=wx.Point(0, 0), size=wx.Size(100, 17), style=0)
  3056 
  3056 
  3057         self.PouType = wx.ComboBox(id=ID_POUDIALOGPOUTYPE,
  3057         self.PouType = wx.ComboBox(id=ID_POUDIALOGPOUTYPE,
  3058               name='POUType', parent=self, pos=wx.Point(0, 0),
  3058               name='POUType', parent=self, pos=wx.Point(0, 0),
  3059               size=wx.Size(0, 24), style=wx.CB_READONLY)
  3059               size=wx.Size(0, 28), style=wx.CB_READONLY)
  3060         self.Bind(wx.EVT_COMBOBOX, self.OnTypeChanged, id=ID_POUDIALOGPOUTYPE)
  3060         self.Bind(wx.EVT_COMBOBOX, self.OnTypeChanged, id=ID_POUDIALOGPOUTYPE)
  3061 
  3061 
  3062         self.staticText3 = wx.StaticText(id=ID_POUDIALOGSTATICTEXT3,
  3062         self.staticText3 = wx.StaticText(id=ID_POUDIALOGSTATICTEXT3,
  3063               label='Language:', name='staticText3', parent=self,
  3063               label='Language:', name='staticText3', parent=self,
  3064               pos=wx.Point(0, 0), size=wx.Size(100, 17), style=0)
  3064               pos=wx.Point(0, 0), size=wx.Size(100, 17), style=0)
  3065 
  3065 
  3066         self.Language = wx.ComboBox(id=ID_POUDIALOGLANGUAGE,
  3066         self.Language = wx.ComboBox(id=ID_POUDIALOGLANGUAGE,
  3067               name='Language', parent=self, pos=wx.Point(0, 0),
  3067               name='Language', parent=self, pos=wx.Point(0, 0),
  3068               size=wx.Size(0, 24), style=wx.CB_READONLY)
  3068               size=wx.Size(0, 28), style=wx.CB_READONLY)
  3069         
  3069         
  3070         self.ButtonSizer = self.CreateButtonSizer(wx.OK|wx.CANCEL|wx.CENTRE)
  3070         self.ButtonSizer = self.CreateButtonSizer(wx.OK|wx.CANCEL|wx.CENTRE)
  3071         self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.ButtonSizer.GetAffirmativeButton().GetId())
  3071         self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.ButtonSizer.GetAffirmativeButton().GetId())
  3072             
  3072             
  3073         self._init_sizers()
  3073         self._init_sizers()
  3226               label='Language:', name='staticText2', parent=self,
  3226               label='Language:', name='staticText2', parent=self,
  3227               pos=wx.Point(0, 0), size=wx.Size(120, 17), style=0)
  3227               pos=wx.Point(0, 0), size=wx.Size(120, 17), style=0)
  3228 
  3228 
  3229         self.Language = wx.ComboBox(id=ID_POUTRANSITIONDIALOGLANGUAGE,
  3229         self.Language = wx.ComboBox(id=ID_POUTRANSITIONDIALOGLANGUAGE,
  3230               name='Language', parent=self, pos=wx.Point(0, 0),
  3230               name='Language', parent=self, pos=wx.Point(0, 0),
  3231               size=wx.Size(0, 24), style=wx.CB_READONLY)
  3231               size=wx.Size(0, 28), style=wx.CB_READONLY)
  3232         
  3232         
  3233         self.ButtonSizer = self.CreateButtonSizer(wx.OK|wx.CANCEL|wx.CENTRE)
  3233         self.ButtonSizer = self.CreateButtonSizer(wx.OK|wx.CANCEL|wx.CENTRE)
  3234         self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.ButtonSizer.GetAffirmativeButton().GetId())
  3234         self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.ButtonSizer.GetAffirmativeButton().GetId())
  3235         
  3235         
  3236         self._init_sizers()
  3236         self._init_sizers()
  3365               label='Language:', name='staticText2', parent=self,
  3365               label='Language:', name='staticText2', parent=self,
  3366               pos=wx.Point(0, 0), size=wx.Size(100, 17), style=0)
  3366               pos=wx.Point(0, 0), size=wx.Size(100, 17), style=0)
  3367 
  3367 
  3368         self.Language = wx.ComboBox(id=ID_POUACTIONDIALOGLANGUAGE,
  3368         self.Language = wx.ComboBox(id=ID_POUACTIONDIALOGLANGUAGE,
  3369               name='Language', parent=self, pos=wx.Point(0, 0),
  3369               name='Language', parent=self, pos=wx.Point(0, 0),
  3370               size=wx.Size(0, 24), style=wx.CB_READONLY)
  3370               size=wx.Size(0, 28), style=wx.CB_READONLY)
  3371         
  3371         
  3372         self.ButtonSizer = self.CreateButtonSizer(wx.OK|wx.CANCEL|wx.CENTRE)
  3372         self.ButtonSizer = self.CreateButtonSizer(wx.OK|wx.CANCEL|wx.CENTRE)
  3373         self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.ButtonSizer.GetAffirmativeButton().GetId())
  3373         self.Bind(wx.EVT_BUTTON, self.OnOK, id=self.ButtonSizer.GetAffirmativeButton().GetId())
  3374         
  3374         
  3375         self._init_sizers()
  3375         self._init_sizers()
  3981               label='Return Type:', name='staticText1', parent=self,
  3981               label='Return Type:', name='staticText1', parent=self,
  3982               pos=wx.Point(0, 0), size=wx.Size(95, 17), style=0)
  3982               pos=wx.Point(0, 0), size=wx.Size(95, 17), style=0)
  3983 
  3983 
  3984         self.ReturnType = wx.ComboBox(id=ID_VARIABLEEDITORPANELRETURNTYPE,
  3984         self.ReturnType = wx.ComboBox(id=ID_VARIABLEEDITORPANELRETURNTYPE,
  3985               name='ReturnType', parent=self, pos=wx.Point(0, 0),
  3985               name='ReturnType', parent=self, pos=wx.Point(0, 0),
  3986               size=wx.Size(145, 24), style=wx.CB_READONLY)
  3986               size=wx.Size(145, 28), style=wx.CB_READONLY)
  3987         self.Bind(wx.EVT_COMBOBOX, self.OnReturnTypeChanged, id=ID_VARIABLEEDITORPANELRETURNTYPE)
  3987         self.Bind(wx.EVT_COMBOBOX, self.OnReturnTypeChanged, id=ID_VARIABLEEDITORPANELRETURNTYPE)
  3988 
  3988 
  3989         self.staticText2 = wx.StaticText(id=ID_VARIABLEEDITORPANELSTATICTEXT2,
  3989         self.staticText2 = wx.StaticText(id=ID_VARIABLEEDITORPANELSTATICTEXT2,
  3990               label='Class Filter:', name='staticText2', parent=self,
  3990               label='Class Filter:', name='staticText2', parent=self,
  3991               pos=wx.Point(0, 0), size=wx.Size(95, 17), style=0)
  3991               pos=wx.Point(0, 0), size=wx.Size(95, 17), style=0)
  3992 
  3992 
  3993         self.ClassFilter = wx.ComboBox(id=ID_VARIABLEEDITORPANELCLASSFILTER,
  3993         self.ClassFilter = wx.ComboBox(id=ID_VARIABLEEDITORPANELCLASSFILTER,
  3994               name='ClassFilter', parent=self, pos=wx.Point(0, 0),
  3994               name='ClassFilter', parent=self, pos=wx.Point(0, 0),
  3995               size=wx.Size(145, 24), style=wx.CB_READONLY)
  3995               size=wx.Size(145, 28), style=wx.CB_READONLY)
  3996         self.Bind(wx.EVT_COMBOBOX, self.OnClassFilter, id=ID_VARIABLEEDITORPANELCLASSFILTER)
  3996         self.Bind(wx.EVT_COMBOBOX, self.OnClassFilter, id=ID_VARIABLEEDITORPANELCLASSFILTER)
  3997 
  3997 
  3998         self.VariablesGrid = wx.grid.Grid(id=ID_VARIABLEEDITORPANELVARIABLESGRID,
  3998         self.VariablesGrid = wx.grid.Grid(id=ID_VARIABLEEDITORPANELVARIABLESGRID,
  3999               name='VariablesGrid', parent=self, pos=wx.Point(0, 0), 
  3999               name='VariablesGrid', parent=self, pos=wx.Point(0, 0), 
  4000               size=wx.Size(0, 150), style=wx.VSCROLL)
  4000               size=wx.Size(0, 150), style=wx.VSCROLL)