mirror of
https://bitbucket.org/svk28/rac-gui
synced 2024-11-13 00:56:54 +00:00
Added toolbar
This commit is contained in:
parent
0721d8292d
commit
2ff4c174e3
10
lib/gui.tcl
10
lib/gui.tcl
@ -21,6 +21,13 @@ wm iconname . "1C Rac Gui"
|
||||
wm protocol . WM_DELETE_WINDOW Quit
|
||||
wm overrideredirect . 0
|
||||
wm positionfrom . user
|
||||
set frm_tool [frame .frm_tool]
|
||||
|
||||
ttk::button $frm_tool.btn_add -text + -command Add
|
||||
ttk::button $frm_tool.btn_del -text - -command Del
|
||||
ttk::button $frm_tool.btn_quit -text Выход -command Quit
|
||||
|
||||
pack $frm_tool.btn_add $frm_tool.btn_del $frm_tool.btn_quit -side top -padx 5 -pady 5
|
||||
|
||||
set frm_tree [frame .frm_tree]
|
||||
|
||||
@ -58,7 +65,7 @@ grid columnconfigure $frm_work 0 -weight 1
|
||||
grid rowconfigure $frm_work 0 -weight 1
|
||||
|
||||
#pack $tree_work -expand true -fill both
|
||||
#pack $frm_tree -side left -expand true -fill both
|
||||
pack $frm_tool -side left -fill y
|
||||
pack $frm_tree $frm_work -side left -expand true -fill both
|
||||
|
||||
# $tree_work insert {} end -id Languages -text "Languages"
|
||||
@ -80,3 +87,4 @@ pack $frm_tree $frm_work -side left -expand true -fill both
|
||||
# grid rowconfigure .t .t.txt -weight 1
|
||||
# grid columnconfigure .t .t.txt -weight 1
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user