PLCOpenEditor.py
changeset 1791 3216ed1ba1f7
parent 1783 3311eea28d56
child 1792 4d1de8b0183f
equal deleted inserted replaced
1790:47fc06c13b37 1791:3216ed1ba1f7
    31 import traceback
    31 import traceback
    32 import getopt
    32 import getopt
    33 import version
    33 import version
    34 import util.paths as paths
    34 import util.paths as paths
    35 
    35 
    36 from docutil import *
       
    37 from IDEFrame import IDEFrame, AppendMenu
       
    38 from IDEFrame import \
       
    39     TITLE, \
       
    40     EDITORTOOLBAR, \
       
    41     FILEMENU, \
       
    42     EDITMENU, \
       
    43     DISPLAYMENU, \
       
    44     PROJECTTREE, \
       
    45     POUINSTANCEVARIABLESPANEL, \
       
    46     LIBRARYTREE, \
       
    47     PAGETITLES
       
    48 
       
    49 from IDEFrame import EncodeFileSystemPath, DecodeFileSystemPath
       
    50 from editors.Viewer import Viewer
       
    51 from PLCControler import PLCControler
       
    52 from dialogs import ProjectDialog
       
    53 from dialogs.AboutDialog import ShowAboutDialog
       
    54 
       
    55 
    36 
    56 beremiz_dir = paths.AbsDir(__file__)
    37 beremiz_dir = paths.AbsDir(__file__)
    57 
    38 
    58 __version__ = "$Revision: 1.130 $"
    39 __version__ = "$Revision: 1.130 $"
    59 
    40 
    93     else:
    74     else:
    94         app = wx.PySimpleApp()
    75         app = wx.PySimpleApp()
    95 
    76 
    96     from util.misc import InstallLocalRessources
    77     from util.misc import InstallLocalRessources
    97     InstallLocalRessources(beremiz_dir)
    78     InstallLocalRessources(beremiz_dir)
       
    79 
       
    80     # these imports require wx.GetApp to return
       
    81     # a valid application instance
       
    82     from docutil import *
       
    83     from IDEFrame import IDEFrame, AppendMenu
       
    84     from IDEFrame import \
       
    85         TITLE, \
       
    86         EDITORTOOLBAR, \
       
    87         FILEMENU, \
       
    88         EDITMENU, \
       
    89         DISPLAYMENU, \
       
    90         PROJECTTREE, \
       
    91         POUINSTANCEVARIABLESPANEL, \
       
    92         LIBRARYTREE, \
       
    93         PAGETITLES
       
    94 
       
    95     from IDEFrame import EncodeFileSystemPath, DecodeFileSystemPath
       
    96     from editors.Viewer import Viewer
       
    97     from PLCControler import PLCControler
       
    98     from dialogs import ProjectDialog
       
    99     from dialogs.AboutDialog import ShowAboutDialog
    98 
   100 
    99 
   101 
   100 # -------------------------------------------------------------------------------
   102 # -------------------------------------------------------------------------------
   101 #                            PLCOpenEditor Main Class
   103 #                            PLCOpenEditor Main Class
   102 # -------------------------------------------------------------------------------
   104 # -------------------------------------------------------------------------------