How to define a widget name in a file but create it in another file??
Oct. 23, 2013
3:02 a.m.
In the Tk demo, you can define a widget name in a subscript file, but create this widget in the main srcipt file. How to do it in python/tkinter? here is the Tk code, buttons named in sub file, but create in main file: in subscript file: ## See Code / Dismiss buttons set btns [addSeeDismiss $w.buttons $w {} \ {ttk::button $w.buttons.fontchooser -command fontchooserToggle}] pack $btns -side bottom -fill x in main script file: proc addSeeDismiss {w show {vars {}} {extra {}}} { ## See Code / Dismiss buttons ttk::frame $w ttk::separator $w.sep #ttk::frame $w.sep -height 2 -relief sunken ... } 2013-10-23 zaazbb
4740
Age (days ago)
4740
Last active (days ago)
0 comments
1 participants
participants (1)
-
zaazbb