File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ grid $sa -row $row -rowspan 6 -column 0 -sticky w -padx {10 0} -pady {5 0}
5454#
5555set l [ttk::label $cf .l$row -text " Release:" ]
5656grid $l -row $row -column 1 -sticky w -padx {10 0} -pady {5 0}
57- ttk::style map TCombobox -fieldbackground {readonly white}
57+ ttk::style map TCombobox -fieldbackground \
58+ [list {readonly focus} lightYellow readonly white]
5859set cb [ttk::combobox $cf .cb -state readonly -width 14]
5960grid $cb -row $row -column 2 -sticky w -padx {5 10} -pady {5 0}
6061
@@ -284,13 +285,12 @@ proc configTablelist {} {
284285 -scrollmargin 0 -hscrollmode none]
285286
286287 #
287- # Unfortunately, the iwidgets::scrolledframe widget has
288- # no built-in equivalents of the BWidget ScrollableFrame
289- # widget options -constrainedwidth and -yscrollincrement
288+ # Unfortunately, the iwidgets::scrolledframe widget has no built-in
289+ # equivalent of the BWidget ScrollableFrame option -constrainedwidth:
290290 #
291291 set canvas [$sf component canvas]
292292 bind $canvas <Configure> {
293- %W itemconfigure frameTag -width [winfo width %W]
293+ %W itemconfigure frameTag -width %w
294294 }
295295 $canvas configure -background $::bg
296296
Original file line number Diff line number Diff line change @@ -68,8 +68,9 @@ foreach country $countryList capital $capitalList {
6868
6969set capitalList [lsort $capitalList ]
7070
71- ttk::style map TCombobox -fieldbackground {readonly white}
72- set btnStyle [expr {$::ttk::currentTheme eq " aqua" ? " TButton" : " Toolbutton" }]
71+ ttk::style map TCombobox -fieldbackground \
72+ [list {readonly focus} lightYellow readonly white]
73+ set btnStyle [expr {$ttk::currentTheme eq " aqua" ? " TButton" : " Toolbutton" }]
7374
7475set row 0
7576foreach country $countryList {
You can’t perform that action at this time.
0 commit comments