tests/wxHMI/HMI@wxglade_hmi/pyfile.xml
changeset 1465 9011e2ceea85
parent 1462 9ee3a2dea7e8
child 1691 9a42f12a973e
equal deleted inserted replaced
1462:9ee3a2dea7e8 1465:9011e2ceea85
    21     <variable name="TaxisPlus" type="BOOL"/>
    21     <variable name="TaxisPlus" type="BOOL"/>
    22   </variables>
    22   </variables>
    23   <globals>
    23   <globals>
    24     <xhtml:p><![CDATA[
    24     <xhtml:p><![CDATA[
    25 import ctypes
    25 import ctypes
    26 import Image
       
    27 import wx, sys
    26 import wx, sys
    28 
    27 
    29 AxisList = ["X","Y","Z","T"]
    28 AxisList = ["X","Y","Z","T"]
    30 
    29 
    31 PwrButtons = ['Power_ON',
    30 PwrButtons = ['Power_ON',
   103         lambda axis:( MakeButtonFunc(self, sizer, axis+"axisMinus"), 
   102         lambda axis:( MakeButtonFunc(self, sizer, axis+"axisMinus"), 
   104                         MakeButtonFunc(self, sizer, axis+"axisPlus")),
   103                         MakeButtonFunc(self, sizer, axis+"axisPlus")),
   105         AxisList)
   104         AxisList)
   106     # self.timer = wx.Timer(self, -1)
   105     # self.timer = wx.Timer(self, -1)
   107     # self.Bind(wx.EVT_TIMER, self.UpdatePositions, self.timer)
   106     # self.Bind(wx.EVT_TIMER, self.UpdatePositions, self.timer)
   108     self.ShowFullScreen(True,wx.FULLSCREEN_ALL)
   107     # self.ShowFullScreen(True,wx.FULLSCREEN_ALL)
   109     # wx.CallAfter(self.timer.Start,200)
   108     # wx.CallAfter(self.timer.Start,200)
   110     
   109     
   111 Class_wxglade_hmi.__init__ = Init
   110 Class_wxglade_hmi.__init__ = Init
   112 
   111 
   113 def SetPLCGlobalVar(self, evt):
   112 def SetPLCGlobalVar(self, evt):