Skip to content

Instantly share code, notes, and snippets.

@rodrigo-x
Last active August 4, 2021 15:02
Show Gist options
  • Save rodrigo-x/7ba716accb81a4bf0127ed640fa1391b to your computer and use it in GitHub Desktop.
Save rodrigo-x/7ba716accb81a4bf0127ed640fa1391b to your computer and use it in GitHub Desktop.
from tkinter import ttk
from ttkthemes import ThemedTk
# Crio a janela e acrescento o tema Ubuntu
root = ThemedTk(theme = 'ubuntu')
# Crio o button já estilizado..
ttk.Button(root, text = 'Quit', command = root.destroy).pack(padx = '40', pady = '60')
root.title('Teste de tema!')
root.config(background = 'white')
root.geometry('200x200')
root.resizable(False, False)
root.eval('tk::PlaceWindow . center')
root.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment