summaryrefslogtreecommitdiffstats
path: root/build_tools/bin/bld.py
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools/bin/bld.py')
-rwxr-xr-xbuild_tools/bin/bld.py76
1 files changed, 76 insertions, 0 deletions
diff --git a/build_tools/bin/bld.py b/build_tools/bin/bld.py
new file mode 100755
index 0000000..c28e31d
--- /dev/null
+++ b/build_tools/bin/bld.py
@@ -0,0 +1,76 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import sys
+try:
+ from PyQt4 import QtCore, QtGui
+ from PyQt4.QtCore import *
+ from PyQt4.QtGui import *
+except:
+ print "pyqt4 needs to be installed"
+ sys.exit(1)
+
+from bld_resource import *
+import thread
+import signal
+signal.signal(signal.SIGINT, signal.SIG_DFL)
+
+
+settings_dict={}
+settings_dict['group_file_location']='lineEdit_4'
+settings_dict['abs_location'] = 'lineEdit_5'
+settings_dict['repo_location'] = 'lineEdit_6'
+settings_dict['editor'] = 'lineEdit_7'
+settings_dict['sync'] = 'lineEdit_8'
+settings_dict['explore'] = 'lineEdit_9'
+settings_dict['konsole'] = 'lineEdit_10'
+settings_dict['makepkg'] = 'lineEdit_11'
+settings_dict['depcheck'] = 'lineEdit_12'
+settings_dict['repocheck'] = 'lineEdit_13'
+settings_dict['create_iso_cmd'] = 'lineEdit_16'
+settings_dict['upload_iso'] = 'lineEdit_17'
+settings_dict['profile_iso'] = 'lineEdit_19'
+
+
+options_dict={}
+options_dict['chroot'] = 'checkBox_chroot'
+options_dict['download_only'] = 'checkBox_download'
+options_dict['force_install'] = 'checkBox_force'
+options_dict['syncinstall'] = 'checkBox_syncinstall'
+#options_dict['createmd5'] = 'checkBox_md5'
+options_dict['cleardir'] = 'checkBox_clean'
+options_dict['remove_sync'] = 'checkBox_remove'
+options_dict['holdver'] ='checkBox_holdver'
+options_dict['bumpver'] = 'checkBox_bumpver'
+options_dict['install'] = 'checkBox_install'
+options_dict['ignore_deps'] = 'checkBox_ignore'
+options_dict['logview'] = 'checkBox_2'
+
+
+
+
+class MyForm(QtGui.QMainWindow):
+ def __init__(self, parent=None):
+ QtGui.QWidget.__init__(self, parent)
+ self.ui = Ui_MainWindow()
+ self.ui.setupUi(self)
+ #self.ui.populate_group_box()
+ self.ui.load_settings_from_file(False)
+ thread.start_new_thread(self.ui.populate_group_box, ())
+ thread.start_new_thread(self.ui.populate_abs_group_box,())
+ self.ui.populate_iso_profile()
+ self.ui.enable_go_button()
+ self.ui.tabWidget.setCurrentIndex(0)
+ self.ui.load_settings_from_file(False)
+
+
+
+
+if __name__ == "__main__":
+ # sys.stdout=Unbuffered(sys.stdout)
+ app = QtGui.QApplication(sys.argv)
+ myapp = MyForm()
+ app.processEvents()
+ myapp.show()
+
+ sys.exit(app.exec_())