--- a/Beremiz_service.py Sun Sep 05 05:43:17 2021 +0200
+++ b/Beremiz_service.py Sun Sep 05 15:24:14 2021 +0200
@@ -224,6 +224,7 @@
if wx.VERSION >= (3, 0, 0):
app = wx.App(redirect=False)
@@ -265,7 +266,7 @@
def SetTests(self, tests):
- class BeremizTaskBarIcon(wx.TaskBarIcon):
+ class BeremizTaskBarIcon(wx.adv.TaskBarIcon): TBMENU_START = wx.NewId()
TBMENU_CHANGE_NAME = wx.NewId()
@@ -277,7 +278,7 @@
def __init__(self, pyroserver):
- wx.TaskBarIcon.__init__(self)
+ wx.adv.TaskBarIcon.__init__(self) self.pyroserver = pyroserver
@@ -325,7 +326,7 @@
elif "wxGTK" in wx.PlatformInfo:
# wxMac can be any size upto 128x128, so leave the source img alone....
- icon = wx.IconFromBitmap(img.ConvertToBitmap())
+ icon = wx.Icon(img.ConvertToBitmap()) def OnTaskBarStartPLC(self, evt):
--- a/controls/DebugVariablePanel/DebugVariableGraphicViewer.py Sun Sep 05 05:43:17 2021 +0200
+++ b/controls/DebugVariablePanel/DebugVariableGraphicViewer.py Sun Sep 05 15:24:14 2021 +0200
@@ -1381,8 +1381,6 @@
# Get canvas size and figure bounding box in canvas
width, height = self.GetSize()
bbox = self.GetAxesBoundingBox()
@@ -1409,7 +1407,5 @@
# Draw other Viewer common elements
self.DrawCommonElements(destGC, self.GetButtons())
self.gui_repaint(drawDC=drawDC)
--- a/controls/PouInstanceVariablesPanel.py Sun Sep 05 05:43:17 2021 +0200
+++ b/controls/PouInstanceVariablesPanel.py Sun Sep 05 15:24:14 2021 +0200
@@ -1,4 +1,4 @@
# This file is part of Beremiz, a Integrated Development Environment for
@@ -93,7 +93,7 @@
rect = wx.Rect(images_bbx.x + 4, images_bbx.y + 4,
for r_image in rightimages:
+ if rect.Contains(point):