summarylogtreecommitdiffstats
path: root/lighttrans.py
diff options
context:
space:
mode:
authorElrondo462018-12-15 08:11:18 +0100
committerElrondo462018-12-15 08:11:18 +0100
commita1caf5c9bf7ddfd0c41f2f608351bc2ae31fd1f4 (patch)
tree72842cfafc0368e1b6d93a931157c78df70557bd /lighttrans.py
parent575c0f365abc958345af482820b56bafc3dfe500 (diff)
downloadaur-a1caf5c9bf7ddfd0c41f2f608351bc2ae31fd1f4.tar.gz
last fixes
Diffstat (limited to 'lighttrans.py')
-rw-r--r--lighttrans.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lighttrans.py b/lighttrans.py
index 02ddad18fac..9903fc30c12 100644
--- a/lighttrans.py
+++ b/lighttrans.py
@@ -2,6 +2,7 @@
# Created, cleaned and commented by Baba Orhum
# Threaded by Wascar
# Program in BETA1 (0.50-b1)
+# Thanks to PapaJoke for his adviced
# Importing used modules
import os
@@ -76,11 +77,15 @@ def patchThread(tempur, ver, lang): # The second thread
shutil.rmtree(tempur, ignore_errors=True)
GLib.idle_add(doneSoft) # Better to inform you
except OSError:
- GLib.idle_add(stopTrickingMe("GENERAL EXCEPTION"))
+ GLib.idle_add(errorSoft)
+
def doneSoft():
buttonswitcher.set_label('DONE PLEASE CLOSE')
+def errorSoft():
+ stopTrickingMe("GENERAL EXCEPTION")
+
def stopTrickingMe(text): # You have to define version OK :)
dialog = Gtk.MessageDialog(parent=Gtk.Window(), flags=0, message_type=Gtk.MessageType.ERROR,