Update sweecrypt-gtk.py
This commit is contained in:
parent
7a0c5262e2
commit
d51ea4baed
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,9 @@
|
|||
import gi, os, sys, sweecrypt as sc
|
||||
import gi
|
||||
import os
|
||||
import sys
|
||||
import sweecrypt as sc
|
||||
from gi.repository import Gtk, Gdk
|
||||
gi.require_version("Gtk", "3.0")
|
||||
from gi.repository import Gtk, GdkPixbuf, Gdk
|
||||
UI_FILE = os.path.dirname(os.path.realpath(__file__)) + "/sweecrypt-gtk.ui"
|
||||
class GUI:
|
||||
def __init__(self):
|
||||
|
@ -23,7 +26,6 @@ class GUI:
|
|||
self.builder.get_object('text').set_property("text", sc.decrypt(inputted, shift))
|
||||
self.builder.get_object('encode').set_property("active", True)
|
||||
def main():
|
||||
app = GUI()
|
||||
Gtk.main()
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
|
|
Loading…
Add table
Reference in a new issue