controls/ProjectPropertiesPanel.py
changeset 1696 8043f32de7b8
parent 1678 55b6db51eb63
child 1730 64d8f52bc8c8
equal deleted inserted replaced
1695:a63bb4025852 1696:8043f32de7b8
     3 
     3 
     4 # This file is part of Beremiz, a Integrated Development Environment for
     4 # This file is part of Beremiz, a Integrated Development Environment for
     5 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival.
     5 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival.
     6 #
     6 #
     7 # Copyright (C) 2012: Edouard TISSERANT and Laurent BESSARD
     7 # Copyright (C) 2012: Edouard TISSERANT and Laurent BESSARD
       
     8 # Copyright (C) 2017: Andrey Skvortsov <andrej.skvortzov@gmail.com>
     8 #
     9 #
     9 # See COPYING file for copyrights details.
    10 # See COPYING file for copyrights details.
    10 #
    11 #
    11 # This program is free software; you can redistribute it and/or
    12 # This program is free software; you can redistribute it and/or
    12 # modify it under the terms of the GNU General Public License
    13 # modify it under the terms of the GNU General Public License
    59             tc.Bind(wx.EVT_KILL_FOCUS, callback)
    60             tc.Bind(wx.EVT_KILL_FOCUS, callback)
    60             sizer.AddWindow(tc, border=10, 
    61             sizer.AddWindow(tc, border=10, 
    61                   flag=wx.GROW|border|wx.RIGHT)
    62                   flag=wx.GROW|border|wx.RIGHT)
    62 
    63 
    63     def __init__(self, parent, controller=None, window=None, enable_required=True):
    64     def __init__(self, parent, controller=None, window=None, enable_required=True):
    64         wx.Notebook.__init__(self, parent, size=wx.Size(500, 300))
    65         wx.Notebook.__init__(self, parent)
    65 
    66 
    66         self.Controller = controller
    67         self.Controller = controller
    67         self.ParentWindow = window
    68         self.ParentWindow = window
    68         self.Values = None
    69         self.Values = None
    69         
    70         
   197               label=_('Content Description (optional):'))
   198               label=_('Content Description (optional):'))
   198         miscellaneouspanel_sizer.AddWindow(description_label, border=10, 
   199         miscellaneouspanel_sizer.AddWindow(description_label, border=10, 
   199               flag=wx.BOTTOM|wx.LEFT)
   200               flag=wx.BOTTOM|wx.LEFT)
   200         
   201         
   201         self.ContentDescription = wx.TextCtrl(self.MiscellaneousPanel, 
   202         self.ContentDescription = wx.TextCtrl(self.MiscellaneousPanel, 
   202               style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
   203               size=wx.Size(240,150), style=wx.TE_MULTILINE|wx.TE_PROCESS_ENTER)
   203         self.Bind(wx.EVT_TEXT_ENTER, self.OnContentDescriptionChanged, 
   204         self.Bind(wx.EVT_TEXT_ENTER, self.OnContentDescriptionChanged, 
   204               self.ContentDescription)
   205               self.ContentDescription)
   205         self.ContentDescription.Bind(wx.EVT_KILL_FOCUS, 
   206         self.ContentDescription.Bind(wx.EVT_KILL_FOCUS, 
   206               self.OnContentDescriptionChanged)
   207               self.OnContentDescriptionChanged)
   207         miscellaneouspanel_sizer.AddWindow(self.ContentDescription, border=10, 
   208         miscellaneouspanel_sizer.AddWindow(self.ContentDescription, border=10,