Created
May 23, 2017 05:29
-
-
Save setekhid/ad9f1db0bb28cebd10c19e99a125fa7f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env python3 | |
import tkinter as tk | |
#https://docs.python.org/3/library/tkinter.html | |
my_accounts = { | |
"user1": { | |
"example.com": 148888888, | |
}, | |
"user2": { | |
"example.com": 148888888, | |
}, | |
} | |
class MyAccounts: | |
def __init__(self): | |
pass | |
class MyKeysFrame(tk.Frame): | |
def __init__(self, tkroot=None): | |
super().__init__(tkroot) | |
self.pack() | |
self.__create_widgets() | |
def __create_widgets(self): | |
self.label = tk.Label(self, text="Hello, world!") | |
self.label.pack() | |
if __name__ == '__main__': | |
tkroot = tk.Tk() | |
frame = MyKeysFrame(tkroot=tkroot) | |
frame.mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment