summaryrefslogtreecommitdiffstats
path: root/build_tools/bin/bld.py
blob: c28e31d9c03d2db6078679856e7f9b42454ce901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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_())