Skip to content

Commit 6389483

Browse files
committed
Demo should use the installed themes.
1 parent 00a44fe commit 6389483

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

demos/demo.tcl

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,18 @@
44
# Tile widget set -- widget demo
55
#
66
package require Tk
7+
package require Ttk
78

89
eval destroy [winfo children .] ;# in case script is re-sourced
910

1011
### Load auxilliary scripts.
1112
#
1213
variable demodir [file dirname [info script]]
13-
lappend auto_path . $demodir
14-
if {[catch {package require Ttk}]} {
15-
package require tile
16-
}
17-
ttk::setTheme tilegtk
18-
foreach {arg val} $argv {
19-
switch -glob -- $arg {
20-
-st* {ttk::theme::tilegtk::applyStyle $val}
21-
}
22-
}
2314

2415
source [file join $demodir iconlib.tcl]
2516
# source [file join $demodir toolbutton.tcl]
2617
source [file join $demodir repeater.tcl]
2718

28-
# This forces an update of the available packages list.
29-
# It's required for package names to find the themes in demos/themes/*.tcl
30-
eval [package unknown] Tcl [package provide Tcl]
31-
3219
### Global options and bindings.
3320
#
3421
option add *Button.default normal

0 commit comments

Comments
 (0)