]> vault307.fbx.one Git - mu_code.git/blob - loopButton.py
early learning in mu editor
[mu_code.git] / loopButton.py
1 import tkinter as tk
2 from tkinter import ttk
3
4 class App(tk.Tk):
5 def __init__(self):
6 super().__init__()
7
8 self.geometry('300x100')
9
10 button=ttk.Button(self,text='Save')
11 button.pack(expand=True)
12
13 style=ttk.Style(self)
14 style.configure('TButton',font=('Helvetica',16))
15 style.map('TButton',
16 foreground=[('pressed','blue'),
17 ('active','red')])
18
19 print(style.layout('TButton'))
20
21 if __name__== "__main__":
22 app=App()
23 app.mainloop()