ttk::menubutton on macOS

Liste des GroupesRevenir à cl tcl 
Sujet : ttk::menubutton on macOS
De : user2230 (at) *nospam* newsgrouper.org.invalid (nab)
Groupes : comp.lang.tcl
Date : 15. Jun 2025, 08:05:25
Autres entêtes
Message-ID : <1749971125-2230@newsgrouper.org>
User-Agent : Newsgrouper/0.7.2

Hi,
using the following script, there's a kind of white area around the ttk::menubutton.
Do you know how to get this area the same colour as its parent frame?

many thanks,
Nicolas


package require Tk

ttk::style configure mini.TMenubutton  -width 5 -relief none
ttk::style configure mini.TMenubutton -foreground black
ttk::style map mini.TMenubutton -background [list {active disabled readonly} green]

frame .f -background green
set thisMenu [menu .m]
for {set i 1} {$i <= 10} {incr i} {
    $thisMenu add command -label $i -command "puts $i"
}
ttk::menubutton .f.m -style mini.TMenubutton  -direction below -menu .m -text "Hi"

grid .f.m -sticky news -padx 10 -pady 10
grid rowconfigure .f all -weight 1
grid columnconfigure .f all -weight 1
grid .f -sticky news

Date Sujet#  Auteur
15 Jun 25 o ttk::menubutton on macOS1nab

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal