Skip to content

Instantly share code, notes, and snippets.

@setekhid
Created May 23, 2017 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save setekhid/ad9f1db0bb28cebd10c19e99a125fa7f to your computer and use it in GitHub Desktop.
Save setekhid/ad9f1db0bb28cebd10c19e99a125fa7f to your computer and use it in GitHub Desktop.
#!/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