Advertisement
Rnery

Base do tkinter..

Aug 31st, 2021 (edited)
225
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.90 KB | Source Code | 1 0
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3.  
  4. import tkinter as tk
  5.  
  6. # Carregar a herança
  7. from modulo import Classes
  8.  
  9. # Herda o Frame e usa o frame correto
  10. class App(tk.Frame):
  11.     def __init__(self, master = None):
  12.         super().__init__(master)
  13.        
  14.         # Invoca as defs
  15.         self.frames()
  16.         self.notebook()
  17.  
  18.     def frames(self):
  19.         pass
  20.  
  21.     def notebook(self):
  22.         pass
  23.  
  24. # Pure factory + NameSpace
  25. root = tk.Tk()
  26. HidroSedi = App(master = root)
  27. HidroSedi.master.config(background = '#1e3743')
  28. HidroSedi.master.iconbitmap(r'/home/nascimento/icone.ico')
  29. HidroSedi.master.title('IVRC Module V1.0')
  30. HidroSedi.master.geometry('1200x600')
  31. HidroSedi.master.resizable(True, True)
  32. HidroSedi.master.eval('tk::PlaceWindow . center')
  33. HidroSedi.master.maxsize(width = '1250', height = '700')
  34. HidroSedi.master.minsize(width = '1250', height = '700')
  35. HidroSedi.mainloop()
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement