diff --git a/pythoncode/FortiusAntGui.py b/pythoncode/FortiusAntGui.py index 1cca7a15..b6267ddf 100644 --- a/pythoncode/FortiusAntGui.py +++ b/pythoncode/FortiusAntGui.py @@ -1,7 +1,8 @@ #------------------------------------------------------------------------------- # Version info #------------------------------------------------------------------------------- -__version__ = "2022-01-24" +__version__ = "2024-01-31" +# 2024-01-31 Smoother power was reset when powermeter resized # 2024-01-24 #456 Addition of an overlay window with gearing info # Target grade is displayed with one decimal # #456 When power exceeds the display, it's resized @@ -477,6 +478,7 @@ def __init__(self, parent, pclv): # Assign A Font To The Center Text self.PowerMax = 0 + self.PowerArray = numpy.array([0,0,0,0,0,0,0,0,0,0]) # Array for running everage self.DefinePowerMeter(400) self.Power.SetTicksFont(wx.Font(TicksFontSize, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL)) # Set The Font For The Ticks Markers @@ -717,7 +719,6 @@ def DefinePowerMeter(self, iPower): Max = Min + Step * NrIntervals self.PowerMax = Max - self.PowerArray = numpy.array([0,0,0,0,0,0,0,0,0,0]) # Array for running everage intervals = range(Min, Max+1, Step) # Create The Intervals That Will Divide Our self.SpeedMeter In Sectors self.Power.SetIntervals(intervals) diff --git a/raspberry/4_InstallWxPython.sh b/raspberry/4_InstallWxPython.sh index e4d5139e..3b0ccd32 100755 --- a/raspberry/4_InstallWxPython.sh +++ b/raspberry/4_InstallWxPython.sh @@ -34,6 +34,17 @@ else # # https://www.marcdobler.com/2020/05/17/how-to-compile-and-install-wxpython-on-raspberry-pi/ # ---------------------------------------------------------- + # + # Issue #457 with OS Bookworm, this does not work and the mentioned + # site is no longer available. + # + # Nevertheless, @decodeais managed to generate a suitable one: + # sudo apt-get install libgtk-3-dev + # sudo apt-get install libpng-dev libjpeg-dev libtiff-dev + # pip install -U --no-binary :all: wxPython + # The generated file "wxPython-4.2.1-cp311-cp311-linux_aarch64.whl" works, + # The but the scales on the performance and speed indicators have disappeared. + # ---------------------------------------------------------- # ---------------------------------------------------------- # Cleanup