Skip to content

Commit

Permalink
Improvement on Overlay frame
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterJD committed Feb 13, 2024
1 parent 291fce6 commit c56e243
Showing 1 changed file with 3 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__ = "2024-01-31"
__version__ = "2024-02-13"
# 2024-02-13 wx.DEFAULT_FRAME_STYLE replaced by wx.CLOSE_BOX on overlay frame
# 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
Expand Down Expand Up @@ -1606,7 +1607,7 @@ def __init__(self, parent, pCranckset, pCassette, pTextCtrlFont):
frameX = 2 * Margin + pCranckset.Size[0] + 15
frameY = 3 * Margin + 2 * pCranckset.Size[1] + 39

style = wx.STAY_ON_TOP | wx.FRAME_TOOL_WINDOW | wx.CAPTION | wx.DEFAULT_FRAME_STYLE
style = wx.STAY_ON_TOP | wx.FRAME_TOOL_WINDOW | wx.CAPTION | wx.CLOSE_BOX # old: wx.DEFAULT_FRAME_STYLE
wx.Frame.__init__(self, None, title='Gearbox', size = (frameX,frameY), style = style)
self.Bind(wx.EVT_CLOSE, self.OnClose)

Expand Down

0 comments on commit c56e243

Please sign in to comment.