From 6db7eb24505a61dc5371c2820d93fbdea9283b76 Mon Sep 17 00:00:00 2001 From: Jason Pearl Date: Thu, 6 Jan 2022 01:23:05 -0700 Subject: [PATCH 1/5] removed expand to fix error line 91 --- nuxhash/gui/mining.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuxhash/gui/mining.py b/nuxhash/gui/mining.py index 7f2e5e6..fddd4f5 100644 --- a/nuxhash/gui/mining.py +++ b/nuxhash/gui/mining.py @@ -88,8 +88,8 @@ def __init__(self, parent, *args, devices=[], **kwargs): # Add start/stop button. self._StartStop = wx.Button(self, label='Start Mining') - bottomSizer.Add(self._StartStop, wx.SizerFlags().Expand() - .Center()) + bottomSizer.Add(self._StartStop, wx.SizerFlags().Center()) + self.Bind(wx.EVT_BUTTON, self.OnStartStop, self._StartStop) def _OnSettings(self, settings): From 90fb1116812752a35b0459f553eaa71a8b621167 Mon Sep 17 00:00:00 2001 From: Jason Pearl Date: Thu, 6 Jan 2022 01:33:44 -0700 Subject: [PATCH 2/5] removed expand to fix error line 91 --- nuxhash/gui/mining.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuxhash/gui/mining.py b/nuxhash/gui/mining.py index fddd4f5..1997915 100644 --- a/nuxhash/gui/mining.py +++ b/nuxhash/gui/mining.py @@ -88,7 +88,7 @@ def __init__(self, parent, *args, devices=[], **kwargs): # Add start/stop button. self._StartStop = wx.Button(self, label='Start Mining') - bottomSizer.Add(self._StartStop, wx.SizerFlags().Center()) + bottomSizer.Add(self._StartStop, wx.SizerFlags().Expand()).Center()) self.Bind(wx.EVT_BUTTON, self.OnStartStop, self._StartStop) From 0ff8ef3af8320e7c4329d0568b6154a1fe750307 Mon Sep 17 00:00:00 2001 From: Jason Pearl Date: Thu, 6 Jan 2022 01:35:54 -0700 Subject: [PATCH 3/5] removed expand to fix error line 91 --- nuxhash/gui/mining.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuxhash/gui/mining.py b/nuxhash/gui/mining.py index 1997915..fddd4f5 100644 --- a/nuxhash/gui/mining.py +++ b/nuxhash/gui/mining.py @@ -88,7 +88,7 @@ def __init__(self, parent, *args, devices=[], **kwargs): # Add start/stop button. self._StartStop = wx.Button(self, label='Start Mining') - bottomSizer.Add(self._StartStop, wx.SizerFlags().Expand()).Center()) + bottomSizer.Add(self._StartStop, wx.SizerFlags().Center()) self.Bind(wx.EVT_BUTTON, self.OnStartStop, self._StartStop) From c83c2eb1050b61bfcab48d080ca7a955540be83d Mon Sep 17 00:00:00 2001 From: Jason Pearl Date: Thu, 6 Jan 2022 01:40:45 -0700 Subject: [PATCH 4/5] removed expand to fix error line 91 --- nuxhash/gui/mining.py | 1 - 1 file changed, 1 deletion(-) diff --git a/nuxhash/gui/mining.py b/nuxhash/gui/mining.py index fddd4f5..4f52b20 100644 --- a/nuxhash/gui/mining.py +++ b/nuxhash/gui/mining.py @@ -89,7 +89,6 @@ def __init__(self, parent, *args, devices=[], **kwargs): # Add start/stop button. self._StartStop = wx.Button(self, label='Start Mining') bottomSizer.Add(self._StartStop, wx.SizerFlags().Center()) - self.Bind(wx.EVT_BUTTON, self.OnStartStop, self._StartStop) def _OnSettings(self, settings): From ef58ab9f8fcd3de17b59f71e474a658017860360 Mon Sep 17 00:00:00 2001 From: Jason Pearl Date: Thu, 6 Jan 2022 02:03:44 -0700 Subject: [PATCH 5/5] fixed pubsub deprecation error --- nuxhash/gui/benchmarks.py | 2 +- nuxhash/gui/main.py | 2 +- nuxhash/gui/mining.py | 2 +- nuxhash/gui/settings.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nuxhash/gui/benchmarks.py b/nuxhash/gui/benchmarks.py index 97c49fe..bd9af53 100644 --- a/nuxhash/gui/benchmarks.py +++ b/nuxhash/gui/benchmarks.py @@ -4,7 +4,7 @@ import wx import wx.dataview from wx.lib.newevent import NewCommandEvent -from wx.lib.pubsub import pub +from pubsub import pub from wx.lib.scrolledpanel import ScrolledPanel from nuxhash import utils diff --git a/nuxhash/gui/main.py b/nuxhash/gui/main.py index 7e7b648..ec753ae 100644 --- a/nuxhash/gui/main.py +++ b/nuxhash/gui/main.py @@ -7,7 +7,7 @@ from subprocess import Popen import wx -from wx.lib.pubsub import pub +from pubsub import pub from wx.lib.newevent import NewCommandEvent import nuxhash.settings diff --git a/nuxhash/gui/mining.py b/nuxhash/gui/mining.py index 4f52b20..3a2a13f 100644 --- a/nuxhash/gui/mining.py +++ b/nuxhash/gui/mining.py @@ -9,7 +9,7 @@ import wx import wx.dataview -from wx.lib.pubsub import pub +from pubsub import pub from nuxhash import nicehash, utils from nuxhash.bitcoin import check_bc diff --git a/nuxhash/gui/settings.py b/nuxhash/gui/settings.py index 0aa41b1..0d0dc1a 100644 --- a/nuxhash/gui/settings.py +++ b/nuxhash/gui/settings.py @@ -2,7 +2,7 @@ from functools import wraps import wx -from wx.lib.pubsub import pub +from pubsub import pub from wx.lib.agw.hyperlink import HyperLinkCtrl from nuxhash import settings