Administrator
2023-08-16 375d222b7b6c8cd3f7d4f6c6637f7fcc97e6f36c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from tkinter import *
 
 
class FlatButton(Button):
    pixelVirtual = None
 
    def __init__(self, master=None, **kw):
        if self.pixelVirtual is None:
            self.pixelVirtual = PhotoImage(width=1, height=1)
        kw['relief'] = FLAT
        kw["image"] = self.pixelVirtual,
        kw["compound"] = "c"
        if "height" not in kw:
            kw["height"] = 20
        super(FlatButton, self).__init__(master, kw)