forked from gabrielogregorio/safira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsafira.py
34 lines (25 loc) · 762 Bytes
/
safira.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# ESSE PROGRAMA NAO PODE MUDAR.
# BIBLIOTECAS NOVAS DEVERÃO SER ANALISADAS COM CALMA.
from tkinter import PhotoImage
from tkinter import Tk
from tkinter import Button
from telas.ide import Interface
from sys import version
print(version)
# Instância de tela principal
tela = Tk()
tela.withdraw()
tela.rowconfigure(1, weight=1)
tela.overrideredirect(1)
tela.grid_columnconfigure(1, weight=1)
# Traz barra de titulo
tela.overrideredirect(0)
# Ocultar tkinter
tela.withdraw()
tela.title('Safira')
icon = PhotoImage(file='imagens/icone.png')
tela.call('wm', 'iconphoto', tela._w, icon)
instancia = Interface(tela, icon)
func_fechar_tela = lambda inst=tela: instancia.fechar_janela(inst)
tela.protocol("WM_DELETE_WINDOW", func_fechar_tela)
tela.mainloop()