Skip to content

Commit ecbf506

Browse files
committed
tile->ttk on demos
1 parent e7daccb commit ecbf506

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

demos/StyleIntrospection.tcl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
## This demo shows information about the Gtk/GNOME style currently in use.
44
##
55
###############################################################################
6-
if {[catch {package require Ttk}]} {
7-
package require tile
8-
}
9-
ttk::setTheme tilegtk
6+
package require Tk
7+
ttk::setTheme gtkTtk
108

119
set win {}
1210
label $win.lbl_option -text Option:
@@ -23,7 +21,7 @@ foreach base {fg bg base text light mid dark text_aa} {
2321
label $win.$base -text "$base:" -anchor w
2422
grid $win.$base -row $row -column $col
2523
foreach state {NORMAL PRELIGHT ACTIVE SELECTED INSENSITIVE} {
26-
set colour [ttk::theme::tilegtk::currentThemeColour ${base}($state)]
24+
set colour [ttk::theme::gtkTtk::currentThemeColour ${base}($state)]
2725
label $win.${base}_$state -background $colour \
2826
-relief raised -borderwidth 1
2927
label $win.${base}_${state}_value -text $colour

demos/autocomplete.tcl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# $Id: autocomplete.tcl,v 1.1 2008/08/03 14:52:09 petasis Exp $
33
#
4-
# Demonstration of inline auto-completion for Tile combobox widgets.
4+
# Demonstration of inline auto-completion for Ttk combobox widgets.
55
#
66
# Usage:
77
#
@@ -16,25 +16,25 @@
1616
# overhead.
1717
#
1818

19-
namespace eval tile::combobox {
19+
namespace eval ttk::combobox {
2020
namespace export enableAutocomplete
2121
}
2222

2323
## enableAutocomplete
2424
#
2525
# Enable inline auto-completion for the specified combobox widget.
2626
#
27-
proc tile::combobox::enableAutocomplete { w {presorted 1} } {
27+
proc ttk::combobox::enableAutocomplete { w {presorted 1} } {
2828
bind $w <KeyPress> [namespace code [list DoAutoComplete %W %A $presorted]]
2929
}
3030

3131
## DoAutoComplete
3232
#
3333
# Perform inline auto-completion of typed text in the combobox.
3434
#
35-
proc tile::combobox::DoAutoComplete { w s presorted } {
35+
proc ttk::combobox::DoAutoComplete { w s presorted } {
3636
set old [$w get]
37-
tile::entry::Insert $w $s
37+
ttk::entry::Insert $w $s
3838
set new [$w get]
3939

4040
# Only auto-complete if the string length has changed due to insertion.

0 commit comments

Comments
 (0)