Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
- import tkinter as tk
- # Carregar a herança
- from modulo import Classes
- # Herda o Frame e usa o frame correto
- class App(tk.Frame):
- def __init__(self, master = None):
- super().__init__(master)
- # Invoca as defs
- self.frames()
- self.notebook()
- def frames(self):
- pass
- def notebook(self):
- pass
- # Pure factory + NameSpace
- root = tk.Tk()
- HidroSedi = App(master = root)
- HidroSedi.master.config(background = '#1e3743')
- HidroSedi.master.iconbitmap(r'/home/nascimento/icone.ico')
- HidroSedi.master.title('IVRC Module V1.0')
- HidroSedi.master.geometry('1200x600')
- HidroSedi.master.resizable(True, True)
- HidroSedi.master.eval('tk::PlaceWindow . center')
- HidroSedi.master.maxsize(width = '1250', height = '700')
- HidroSedi.master.minsize(width = '1250', height = '700')
- HidroSedi.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement