wxglade_hmi/wxglade_hmi.py
changeset 1680 6db967480b7d
parent 1511 91538d0c242c
child 1688 457155545922
equal deleted inserted replaced
1679:2fcea15858a5 1680:6db967480b7d
     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
     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
    24 
    25 
    25 import wx
    26 import wx
    26 import os, sys, shutil
    27 import os, sys, shutil
    27 from xml.dom import minidom
    28 from xml.dom import minidom
    28 
    29 
       
    30 import util.paths as paths
    29 from py_ext import PythonFileCTNMixin
    31 from py_ext import PythonFileCTNMixin
    30 
    32 
    31 class WxGladeHMI(PythonFileCTNMixin):
    33 class WxGladeHMI(PythonFileCTNMixin):
    32 
    34 
    33     ConfNodeMethods = [
    35     ConfNodeMethods = [
    39 
    41 
    40     def GetIconName(self):
    42     def GetIconName(self):
    41         return "wxGlade"
    43         return "wxGlade"
    42 
    44 
    43     def ConfNodePath(self):
    45     def ConfNodePath(self):
    44         return os.path.join(os.path.dirname(__file__))
    46         return paths.AbsDir(__file__)
    45 
    47 
    46     def _getWXGLADEpath(self, project_path=None):
    48     def _getWXGLADEpath(self, project_path=None):
    47         if project_path is None:
    49         if project_path is None:
    48             project_path = self.CTNPath()
    50             project_path = self.CTNPath()
    49         # define name for wxGlade gui file
    51         # define name for wxGlade gui file