Python wx.ProgressDialog() Examples
The following are 2
code examples of wx.ProgressDialog().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wx
, or try the search function
.
Example #1
Source File: main.py From nuxhash with GNU General Public License v3.0 | 5 votes |
def _DownloadMiners(self): to_download = [item for item in make_miners(CONFIG_DIR) if not item.verify()] if len(to_download) > 0: self._DlThread = DownloadThread(self, to_download) self._DlThread.start() self._DlProgress = wx.ProgressDialog('nuxhash', '', parent=self) self._DlProgress.ShowModal() self._DlProgress.Destroy()
Example #2
Source File: xml_parse.py From wxGlade with MIT License | 5 votes |
def __init__(self, *args, **kwds): self.input_file = kwds.get('input_file') if self.input_file: del kwds['input_file'] self.size = len(self.input_file.readlines()) self.input_file.seek(0) import wx self.progress = wx.ProgressDialog( _("Loading..."), _("Please wait while loading the app"), 20 ) self.step = 4 self.i = 1 self._last_progress_update = time.time() else: self.size = 0 self.progress = None XmlWidgetBuilder.__init__(self)