Skip to content

Commit

Permalink
#457 and #456 correction
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterJD committed Jan 31, 2024
1 parent c73fb46 commit 331e2b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pythoncode/FortiusAntGui.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
11 changes: 11 additions & 0 deletions raspberry/4_InstallWxPython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 331e2b7

Please sign in to comment.