mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-05 21:07:58 +00:00
QT packaging: seems to do the basic work
This commit is contained in:
parent
b6105ca5b6
commit
ffbd019c4b
@ -38,6 +38,11 @@ setup(
|
|||||||
packages = ['tombqt'],
|
packages = ['tombqt'],
|
||||||
cmdclass = {
|
cmdclass = {
|
||||||
'build_ui': build_ui
|
'build_ui': build_ui
|
||||||
|
},
|
||||||
|
entry_points = {
|
||||||
|
'gui_scripts': [
|
||||||
|
'tomb-qt-create = tombqt.create:run_create_wizard'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
0
src/qt/tombqt/__init__.py
Normal file
0
src/qt/tombqt/__init__.py
Normal file
@ -109,6 +109,7 @@ class TombCreateWizard(QWizard):
|
|||||||
self.thread.error_received.connect(err_append_to_log)
|
self.thread.error_received.connect(err_append_to_log)
|
||||||
self.thread.start()
|
self.thread.start()
|
||||||
def check_requisite(self):
|
def check_requisite(self):
|
||||||
|
Tomb.tombexec = '/home/davide/coding/projects/tomb/src/tomb'
|
||||||
self._tomb_check = check = Tomb.check('create', no_color=False)
|
self._tomb_check = check = Tomb.check('create', no_color=False)
|
||||||
self.ui.wizardPage_check.completeChanged.emit()
|
self.ui.wizardPage_check.completeChanged.emit()
|
||||||
if check:
|
if check:
|
||||||
@ -123,8 +124,12 @@ class TombCreateWizard(QWizard):
|
|||||||
self.ui.label_swapoff.setEnabled(False)
|
self.ui.label_swapoff.setEnabled(False)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def run_create_wizard():
|
||||||
app = QApplication(sys.argv)
|
app = QApplication(sys.argv)
|
||||||
window = TombCreateWizard()
|
window = TombCreateWizard()
|
||||||
window.show()
|
window.show()
|
||||||
sys.exit(app.exec_())
|
sys.exit(app.exec_())
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
run_create_wizard()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user