Quisk version 4.2.43

This commit is contained in:
James C. Ahlstrom
2025-09-08 12:06:26 -04:00
parent f5c4732eba
commit 6c2e9012c4
145 changed files with 64606 additions and 55 deletions
+7 -1
View File
@@ -582,6 +582,7 @@ class QuiskPushbutton(QuiskButtons, wx.lib.buttons.GenButton):
self.Bind(wx.EVT_BUTTON, self.OnButton)
self.InitButtons(text, text_color)
self.direction = 1
self.normal_brush = self.up_brush
if use_right:
self.Bind(wx.EVT_RIGHT_DOWN, self.OnRightDown)
self.Bind(wx.EVT_RIGHT_UP, self.OnRightUp)
@@ -603,7 +604,12 @@ class QuiskPushbutton(QuiskButtons, wx.lib.buttons.GenButton):
event = wx.PyEvent()
event.SetEventObject(self)
self.command(event)
def SetColorNormal(self):
self.up_brush = self.normal_brush
self.Refresh()
def SetColor(self, color):
self.up_brush = wx.Brush(color)
self.Refresh()
class QuiskRepeatbutton(QuiskButtons, wx.lib.buttons.GenButton):
"""A push button that repeats when held down."""