79827828

Date: 2025-11-23 11:15:13
Score: 0.5
Natty:
Report link
# Source - https://stackoverflow.com/q/79827652
# Posted by Maj mac, modified by community. See post 'Timeline' for change history
# Retrieved 2025-11-23, License - CC BY-SA 4.0

        style.configure('Dark.TButton', background=button_base, foreground=colors['text'], borderwidth=1,
            bordercolor=edge, lightcolor=edge, darkcolor=edge, padding=(10, 4))
        style.map('Dark.TButton',
             background=[('pressed', pressed_bg or hover_bg or button_base),
                      ('active', hover_bg or button_base),
                      ('!disabled', 'red')],
               foreground=[('active', colors['text']), ('pressed', colors['text'])],
               bordercolor=[('pressed', edge), ('active', edge)],
               lightcolor=[('pressed', edge), ('active', edge)],
               darkcolor=[('pressed', edge), ('active', edge)])
                
        style.layout('Dark.TButton', [
            ('Button.border', {'sticky': 'nswe', 'children': [
                ('Button.padding', {'sticky': 'nswe', 'children': [
                    ('Button.label', {'sticky': 'nswe'})
                ]})
            ] })
        ])
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Suchith Malyala