wxPython GUI: Initial Commit

This commit is contained in:
Mykola Grymalyuk
2021-12-22 19:29:29 -07:00
parent aa8643f247
commit 0cb2c84968
6 changed files with 2042 additions and 0 deletions

1754
gui/gui_main.py Normal file

File diff suppressed because it is too large Load Diff

34
gui/menu_redirect.py Normal file
View File

@@ -0,0 +1,34 @@
import wx
class RedirectText(object):
def __init__(self,aWxTextCtrl):
self.out=aWxTextCtrl
def write(self,string):
self.out.WriteText(string)
wx.GetApp().Yield()
def fileno(self):
return 1
def flush(self):
pass
class RedirectLabel(object):
def __init__(self,aWxTextCtrl):
self.out=aWxTextCtrl
def write(self,string):
if string.endswith("MB/s"):
self.out.SetLabel(string)
self.out.Centre(wx.HORIZONTAL)
wx.GetApp().Yield()
class RedirectLabelAll(object):
def __init__(self,aWxTextCtrl):
self.out=aWxTextCtrl
def write(self,string):
self.out.SetLabel(string)
self.out.Centre(wx.HORIZONTAL)
wx.GetApp().Yield()