Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Fix pubsub error #118

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nuxhash/gui/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nuxhash/gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions nuxhash/gui/mining.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -88,8 +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)

def _OnSettings(self, settings):
Expand Down
2 changes: 1 addition & 1 deletion nuxhash/gui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down