This repository has been archived by the owner on Apr 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ee8660f
Showing
116 changed files
with
6,301 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#! /usr/bin/python | ||
from sys import argv,exit | ||
from os import getuid | ||
from PyQt4.QtGui import * | ||
from PyQt4.QtCore import * | ||
from Core.check_privilege import frm_privelege | ||
from Core.Main import frmControl | ||
from Core.check import check_dependencies | ||
if __name__ == '__main__': | ||
if not getuid() == 0: | ||
app2 = QApplication(argv) | ||
priv = frm_privelege() | ||
priv.setWindowIcon(QIcon('rsc/icon.ico')) | ||
priv.setWindowFlags(priv.windowFlags() | Qt.WindowMaximizeButtonHint) | ||
priv.show() | ||
exit(app2.exec_()) | ||
else: | ||
check_dependencies() | ||
root = QApplication(argv) | ||
app = frmControl(None) | ||
app.setWindowIcon(QIcon('rsc/icon.ico')) | ||
app.center() | ||
app.show() | ||
root.exec_() | ||
|
||
|
Oops, something went wrong.