Date: Wed, 19 Jun 2019 06:39:06 +0000 (UTC) From: Stephen Hurd <shurd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r504514 - in head/comms/quisk: . files Message-ID: <201906190639.x5J6d6U8003911@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: shurd Date: Wed Jun 19 06:39:05 2019 New Revision: 504514 URL: https://svnweb.freebsd.org/changeset/ports/504514 Log: Fix issue where if the height of the slider is greater than the height of the text, the slider isn't displayed. Added: head/comms/quisk/files/patch-quisk__widgets.py (contents, props changed) Modified: head/comms/quisk/Makefile Modified: head/comms/quisk/Makefile ============================================================================== --- head/comms/quisk/Makefile Wed Jun 19 05:32:28 2019 (r504513) +++ head/comms/quisk/Makefile Wed Jun 19 06:39:05 2019 (r504514) @@ -3,7 +3,7 @@ PORTNAME= quisk DISTVERSION= 4.1.40 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= comms hamradio MASTER_SITES= CHEESESHOP Added: head/comms/quisk/files/patch-quisk__widgets.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/quisk/files/patch-quisk__widgets.py Wed Jun 19 06:39:05 2019 (r504514) @@ -0,0 +1,20 @@ +--- quisk_widgets.py.orig 2019-06-19 06:35:39 UTC ++++ quisk_widgets.py +@@ -248,7 +248,16 @@ class SliderBoxH: + else: + self.text_ctrl = wx.StaticText(parent, -1, t, pos=pos) + w2, h2 = self.text_ctrl.GetSize() +- self.slider = wx.Slider(parent, -1, init, themin, themax, (pos[0] + w2, pos[1]), (width - w2, h2)) ++ self.slider = wx.Slider(parent, -1, init, themin, themax) ++ w3, h3 = self.slider.GetSize() ++ p2 = pos[1] ++ if h3 > h2: ++ p2 -= (h3 - h2) / 2 ++ h2 = h3 ++ else: ++ p2 += (h2 - h3) / 2 ++ self.slider.SetSize((width - w2, h2)) ++ self.slider.SetPosition((pos[0] + w2, p2)) + self.slider.Bind(wx.EVT_SCROLL, self.OnScroll) + self.text_ctrl.SetForegroundColour(parent.GetForegroundColour()) + self.OnScroll()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906190639.x5J6d6U8003911>