Update h2inc_gtk.py

This commit is contained in:
Lerking
2018-05-08 12:27:22 +02:00
committed by GitHub
parent f3cdba01aa
commit d5a340d1f3

View File

@@ -42,6 +42,7 @@ class H2INC:
self.obj("window").set_wmclass("h2inc_gtk","h2inc_gtk")
self.obj("window").show_all()
self.obj("source_entry").set_text(defsrc)
self.obj("destination_entry").set_text(defdest)
self.obj("default_dir_checkbutton").set_active(False)
self.obj("include_checkbutton").set_active(True)
@@ -150,11 +151,11 @@ class H2INC:
global destdir
global incinc
if self.obj("include_checkbutton").get_active() == True:
incinc = '/include'
incinc = '¨~/include'
destdir = destdir+incinc
if self.obj("include_checkbutton").get_active() == False:
incinc = ''
destdir = destdir.replace('/include', '')
destdir = destdir.replace('~/include', '')
self.obj("destination_entry").set_text(destdir)
print(destdir)