Changes

Jump to navigation Jump to search
293 bytes added ,  14:18, 3 June 2011
m
==Source==
This GUI was coded purely in python using wxpython pyqt for the framework.
===avdump2gui.pyw===
<pre style="font-size: 60%;">
import sys, os, platform, subprocessw, ConfigParser, string, unicodedata
def _run(self):
username = unicode(self._ui.username.text())
apikey = unicode(self._ui.apikey.text())
 
if self._ui.datatable.rowCount() == 0:
QtGui.QMessageBox.information(self, "Error!", "No files to scan in list.", QtGui.QMessageBox.Ok)
elif not os.path.exists('avdump2cl.exe'):
QtGui.QMessageBox.information(self, "Error!", "Avdump2cl.exe not found.", QtGui.QMessageBox.Ok)
return
elif len(username) == 0 or len(apikey) == 0:
QtGui.QMessageBox.information(self, "Error!", "No username and/or api-key specified!", QtGui.QMessageBox.Ok)
return
self._ui.progressBar.setValue(self._calculate_progress())
self._disable_elements()
username = unicode(self._ui.username.text())
apikey = unicode(self._ui.apikey.text())
done = ''
if self._ui.done.isChecked() is True:
exp = ''
if self._ui.exp.isChecked() is True:
if not os.path.exists('exports'):
os.mkdir('exports')
exp = '-exp:' + self._export_filename

Navigation menu

MediaWiki spam blocked by CleanTalk.