Post by Bryan OakleyI'm usinghttp://tkdocs.com/tutorial/complex.html#separatoras a guide.
The graphic in that section shows exactly what I want.
I try to add it to the object I'm creating. Unsuccessfully.
The Help system is lacking in detail/example.
Google and wiki searches do not turn up anything that appears informative.
Without seeing your code it's impossible for us to figure out what is
wrong.
I didn't post code as too many things might be wrong making correction
of it a not worthwhile task to answer my question. And the answer might
only apply to a specific case. Thats why I was looking for examples
[preferably multiple examples &/or more verbose description of statement].
Post by Bryan OakleyAt the very least, define "unsuccessfully". Do you get an
error, and if so, what error? If you don't get an error, what do you
get? Does the code run but the separator is invisible? If so, how are
you managing it (ie: what grid, pack or place options are you using?)
Nothing as in:
no error message
nothing visible
Post by Bryan OakleyIf possible, can you post your actual code here? We need to see both
where you create the widget and where you manage it (where you call
grid, pack or place).
My code *DOES NOT YET* perform any useful activity.
I am _ONLY_ working on layout.
package require Tk
wm title . "Test of ttk::separator"
grid [ttk::frame .p -padding "3 3 12 12"] -column 0 -row 0 -sticky nwes
grid columnconfigure . 0 -weight 1
grid rowconfigure . 0 -weight 1
grid [ttk::label .p.min_lbl -text "Min"] -column 1 -row 1 -sticky w
grid [ttk::label .p.max_lbl -text "Max"] -column 2 -row 1 -sticky w
grid [ttk::label .p.time_lbl -text "Time" ] -column 0 -row 2 -sticky w
grid [ttk::label .p.freq_lbl -text "Frequency"] -column 0 -row 3 -sticky w
grid [ttk::entry .p.t0 -width 7 -textvariable t0 ] -column 1 -row 2
-sticky w
grid [ttk::entry .p.tlast -width 7 -textvariable tlast] -column 2 -row 2
-sticky w
grid [ttk::entry .p.fmin -width 7 -textvariable fmin ] -column 1 -row 3
-sticky w
grid [ttk::entry .p.fmax -width 7 -textvariable fmax ] -column 2 -row 3
-sticky w
grid [ttk::label .p.offset_lbl -text "Offset"] -column 1 -row 5 -sticky w
grid [ttk::label .p.width_lbl -text "Width" ] -column 2 -row 5 -sticky w
grid [ttk::label .p.window_lbl -text "Window" ] -column
0 -row 6 -sticky w
grid [ttk::entry .p.toffset -width 7 -textvariable toffset ] -column
1 -row 6 -sticky w
grid [ttk::entry .p.width -width 7 -textvariable width ] -column
2 -row 6 -sticky w
# tried
# grid [ttk::separator .p.s -orient horizontal]
# and
# ttk::separator .p.s -orient horizontal
# among others
#
# wanted a separator above row of buttons
grid [ttk::button .p.2d -text "2D Plot" -command calculate] -column 0
-row 10 -sticky w
grid [ttk::button .p.3d -text "3D Plot" -command calculate] -column 2
-row 10 -sticky w
foreach w [winfo children .p] {grid configure $w -padx 5 -pady 5}
focus .p.t0
bind . <Return> {calculate}
proc calculate {} {
if {[catch {
set a 5]
}]!=0} {
set a 6
}
}