Skip to content

Commit c56e243

Browse files
committed
Improvement on Overlay frame
1 parent 291fce6 commit c56e243

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pythoncode/FortiusAntGui.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#-------------------------------------------------------------------------------
22
# Version info
33
#-------------------------------------------------------------------------------
4-
__version__ = "2024-01-31"
4+
__version__ = "2024-02-13"
5+
# 2024-02-13 wx.DEFAULT_FRAME_STYLE replaced by wx.CLOSE_BOX on overlay frame
56
# 2024-01-31 Smoother power was reset when powermeter resized
67
# 2024-01-24 #456 Addition of an overlay window with gearing info
78
# Target grade is displayed with one decimal
@@ -1606,7 +1607,7 @@ def __init__(self, parent, pCranckset, pCassette, pTextCtrlFont):
16061607
frameX = 2 * Margin + pCranckset.Size[0] + 15
16071608
frameY = 3 * Margin + 2 * pCranckset.Size[1] + 39
16081609

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

0 commit comments

Comments
 (0)