From 9915e9aa4e3d42008358e2ccab73c05ccb7f92c2 Mon Sep 17 00:00:00 2001 From: Stephen Hurd Date: Mon, 22 Apr 2019 05:45:17 +0000 Subject: [PATCH] Fix multi-screen size handling, and fix test for wxWidgets wx was imported in setup just to test if it was installed, then the script prompted the user to continue. Comment this out. The screen size was not properly checked. This caused issues on multi-monitor systems. Fixed. Reported by: db --- comms/quisk/Makefile | 1 + comms/quisk/files/patch-quisk.py | 15 ++++++++++++++- comms/quisk/files/patch-setup.py | 18 ++++++++++++++---- 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/comms/quisk/Makefile b/comms/quisk/Makefile index 806c2e8d7f86..e7ab20d1b46d 100644 --- a/comms/quisk/Makefile +++ b/comms/quisk/Makefile @@ -3,6 +3,7 @@ PORTNAME= quisk PORTVERSION= 4.1.26 +PORTREVISION= 1 CATEGORIES= comms hamradio MASTER_SITES= CHEESESHOP diff --git a/comms/quisk/files/patch-quisk.py b/comms/quisk/files/patch-quisk.py index 027e099fbc14..4ae7d5fba1fd 100644 --- a/comms/quisk/files/patch-quisk.py +++ b/comms/quisk/files/patch-quisk.py @@ -1,4 +1,4 @@ ---- quisk.py.orig 2019-04-19 15:47:26 UTC +--- quisk.py.orig 2018-11-23 17:50:38 UTC +++ quisk.py @@ -21,6 +21,13 @@ os.chdir(os.path.normpath(os.path.dirnam if sys.path[0] != "'.'": # Make sure the current working directory is on path @@ -14,3 +14,16 @@ import wx, wx.html, wx.lib.buttons, wx.lib.stattext, wx.lib.colourdb, wx.grid, wx.richtext import math, cmath, time, traceback, string, select, subprocess import threading, pickle, webbrowser +@@ -3609,9 +3616,9 @@ class App(wx.App): + self.file_play_timer = 0 + self.file_play_source = 0 # 10 == play audio file, 11 == play I/Q sample file, 12 == play CQ message + # get the screen size - thanks to Lucian Langa +- x1, y1, x2, y2 = wx.Display().GetGeometry() +- self.screen_width = x2 - x1 +- self.screen_height = y2 - y1 ++ dispGeo = wx.Display().GetGeometry() ++ self.screen_width = dispGeo.width ++ self.screen_height = dispGeo.height + self.Bind(wx.EVT_IDLE, self.OnIdle) + self.Bind(wx.EVT_QUERY_END_SESSION, self.OnEndSession) + # Restore persistent program state diff --git a/comms/quisk/files/patch-setup.py b/comms/quisk/files/patch-setup.py index 22d8769c456a..193afbdfe64e 100644 --- a/comms/quisk/files/patch-setup.py +++ b/comms/quisk/files/patch-setup.py @@ -1,9 +1,14 @@ --- setup.py.orig 2018-11-22 14:56:57 UTC +++ setup.py -@@ -18,18 +18,18 @@ if sys.platform != "win32": - except ImportError: - print ("Please install the package python-wxgtk3.0 or later") - missing = True +@@ -13,23 +13,23 @@ fp.close() + + if sys.platform != "win32": + missing = False +- try: +- import wx +- except ImportError: +- print ("Please install the package python-wxgtk3.0 or later") +- missing = True - if not os.path.isfile("/usr/include/fftw3.h"): - print ("Please install the package libfftw3-dev") - missing = True @@ -16,6 +21,11 @@ - if not os.path.isdir("/usr/include/pulse"): - print ("please install the package libpulse-dev") - missing = True ++# try: ++# import wx ++# except ImportError: ++# print ("Please install the package python-wxgtk3.0 or later") ++# missing = True +# if not os.path.isfile("/usr/include/fftw3.h"): +# print ("Please install the package libfftw3-dev") +# missing = True