editors/ConfTreeNodeEditor.py
changeset 1696 8043f32de7b8
parent 1562 6e38f13d4b7b
child 1707 92537edeb205
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) 2007: Edouard TISSERANT and Laurent BESSARD
     7 # Copyright (C) 2007: 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
   378                             value_infos = element_infos["value"][1]
   379                             value_infos = element_infos["value"][1]
   379                         else:
   380                         else:
   380                             value_infos = None
   381                             value_infos = None
   381                         browse_boxsizer.AddWindow(textctrl)
   382                         browse_boxsizer.AddWindow(textctrl)
   382 
   383 
   383                         button = wx.Button(self.ParamsEditor,
   384                         button = wx.Button(self.ParamsEditor, label="...")
   384                               label="...", size=wx.Size(25, 25))
       
   385                         browse_boxsizer.AddWindow(button)
   385                         browse_boxsizer.AddWindow(button)
   386                         button.Bind(wx.EVT_BUTTON,
   386                         button.Bind(wx.EVT_BUTTON,
   387                                     self.GetBrowseCallBackFunction(element_infos["name"], textctrl, element_infos["type"],
   387                                     self.GetBrowseCallBackFunction(element_infos["name"], textctrl, element_infos["type"],
   388                                                                    value_infos, element_path),
   388                                                                    value_infos, element_path),
   389                                     button)
   389                                     button)