Skip to content

Commit 68521b4

Browse files
committed
[update] : Added gtk check
1 parent 20769f4 commit 68521b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/build_helper.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
class MainWindow(Gtk.Window):
77
def __init__(self):
8+
9+
#-- Check gtk --#
10+
if not Gtk.init_check()[0]:
11+
script_name = os.path.basename(__file__)
12+
print("[{}]: Failed to initialize gtk".format(script_name))
13+
sys.exit()
14+
815
#-- Create Window --#
916
Gtk.Window.__init__(self, title="AlterISO GUI Helper")
1017

0 commit comments

Comments
 (0)