editors/Viewer.py
changeset 1481 5b294dcaae18
parent 1431 df59be5afb08
child 1498 b11045a2f17c
equal deleted inserted replaced
1480:79e54c5dead5 1481:5b294dcaae18
   598         menu.Enable(ID_PASTE, self.ParentWindow.GetCopyBuffer() is not None)
   598         menu.Enable(ID_PASTE, self.ParentWindow.GetCopyBuffer() is not None)
   599 
   599 
   600     def _init_Editor(self, prnt):
   600     def _init_Editor(self, prnt):
   601         self.Editor = wx.ScrolledWindow(prnt, name="Viewer",
   601         self.Editor = wx.ScrolledWindow(prnt, name="Viewer",
   602             pos=wx.Point(0, 0), size=wx.Size(0, 0),
   602             pos=wx.Point(0, 0), size=wx.Size(0, 0),
   603             style=wx.HSCROLL | wx.VSCROLL | wx.ALWAYS_SHOW_SB)
   603             style=wx.HSCROLL | wx.VSCROLL)
   604         self.Editor.ParentWindow = self
   604         self.Editor.ParentWindow = self
   605 
   605 
   606     # Create a new Viewer
   606     # Create a new Viewer
   607     def __init__(self, parent, tagname, window, controler, debug = False, instancepath = ""):
   607     def __init__(self, parent, tagname, window, controler, debug = False, instancepath = ""):
   608         self.VARIABLE_PANEL_TYPE = controler.GetPouType(tagname.split("::")[1])
   608         self.VARIABLE_PANEL_TYPE = controler.GetPouType(tagname.split("::")[1])