diff -r a0efe3d9c853 -r 56f1d8aca886 tests/wxHMI/wxglade_hmi@wxglade_hmi/pyfile.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/wxHMI/wxglade_hmi@wxglade_hmi/pyfile.xml Wed Sep 12 22:59:30 2018 +0200 @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 0: + for i in reversed(range(sizer_len)): + sizer.Remove(i) + +initorig = Class_wxglade_hmi.__init__ +def Init(self,*args,**kargs): + initorig(self,*args,**kargs) + sizer = self.GetSizer().GetItem(1).GetSizer().GetItem(0).GetSizer() + CleanSizer(sizer) + self.main_buttons = map( + lambda btname: MakeButtonFunc(self, sizer, btname), PwrButtons) + sizer = self.GetSizer().GetItem(1).GetSizer().GetItem(1).GetSizer() + CleanSizer(sizer) + self.main_buttons = map( + lambda btname: MakeButtonFunc(self, sizer, btname), ActionButtons) + self.axis_buttons = map( + lambda axis:( MakeButtonFunc(self, sizer, axis+"axisMinus"), + MakeButtonFunc(self, sizer, axis+"axisPlus")), + AxisList) + + + # self.timer = wx.Timer(self, -1) + # self.Bind(wx.EVT_TIMER, self.UpdatePositions, self.timer) + # self.ShowFullScreen(True,wx.FULLSCREEN_ALL) + # wx.CallAfter(self.timer.Start,200) + +Class_wxglade_hmi.__init__ = Init + +def SetPLCTestBtnGlobalVar(self, evt): + setattr(PLCGlobals, "DrawTestBtn", evt.GetEventObject().GetValue()) + +def SetPLCTestBtn2GlobalVar(self, evt): + setattr(PLCGlobals, "DrawTestBtn2", evt.GetEventObject().GetValue()) + +]]> + + + + + + + + + + + + + +