Добавлена кнопка вызова диалога помощи. Добавлена иконка

This commit is contained in:
Sergey Kalinin 2019-09-16 13:47:38 +03:00
parent 3da4b6f520
commit a4c325d161
4 changed files with 76 additions and 9 deletions

View File

@ -25,8 +25,8 @@ wm positionfrom . user
bind . <Control-q> Quit
bind . <Control-Q> Quit
bind . <Control-eacute> Quit
bind . <Control-Insert> Add
bind . <Control-Delete> Del
bind . <Insert> Add
bind . <Delete> Del
bind . <Control-Return> Edit
bind . <F1> ShowHelpDialog
@ -51,11 +51,12 @@ pack propagate .panel false
ttk::button $frm_tool.btn_add -command Add -image add_grey_32
ttk::button $frm_tool.btn_del -command Del -image del_grey_32
ttk::button $frm_tool.btn_edit -command Edit -image edit_grey_32
ttk::button $frm_tool.btn_help -command ShowHelpDialog -image question_grey_32
ttk::button $frm_tool.btn_quit -command Quit -image quit_grey_32
pack $frm_tool.btn_add $frm_tool.btn_del $frm_tool.btn_edit -side top -padx 5 -pady 5
pack $frm_tool.btn_add $frm_tool.btn_del $frm_tool.btn_edit $frm_tool.btn_help -side top -padx 5 -pady 5
#label $frm_tool.lbl_logo -image tcl
pack $frm_tool.btn_quit -side bottom -padx 5 -pady 5
pack $frm_tool.btn_quit -side bottom -padx 5 -pady 5
#pack $frm_tool.lbl_logo -side bottom -padx 5 -pady 5
# Дерево с полосами прокрутки
@ -122,3 +123,4 @@ pack $frm_tree $frm_work -side left -expand true -fill both
.panel add $frm_tree -weight 1
.panel add $frm_work -weight 1

View File

@ -647,3 +647,68 @@ image create photo help_grey_64 -data {
zfBylh6ZpGWpdNBEHi0IirSaVpJLMnm/VOvjdTmN1CS99WYZ5Kr1m0jGCIRoFFBBMTtwkh/uLfjx
Ms8DfsMjNc/Mf4o2PgHmKkMjAAAAAElFTkSuQmCC
}
image create photo question_grey_64 -data {
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4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YomR4Bczw7HBhaVSzgt9
w/12O6RDr9FqTTe1r9ht99I1zVxf2uZpdccNFHTaKrmCd5YqruXma/bwEOQDcnKh6ybVuRhmkkZ1
xivHZaf8aEc4NBTyf7MOJUH/zPUoAAAAAElFTkSuQmCC
}

View File

@ -130,7 +130,3 @@ set default(temporary_allowed_total_memory_time_limit) 300
# Используемая тема
# доступны: dark, clam, classic, default, alt
set default(theme) dark

View File

@ -99,7 +99,10 @@ if [file exists [file join $dir(work) 1c_srv_new.cfg]] {
puts $servers_list
puts [dict get $servers_list servers]
dict for {host host_data} [dict get $servers_list servers] {
.frm_tree.tree insert {} end -id "server::$host" -text [dict get $host_data name] -values "$host"
.frm_tree.tree insert {} end -id "server::$host" \
-text [dict get $host_data name] -values "$host"
puts "$host > $host_data"
puts [dict get $host_data name]
set rac_cmd_for_host($host) [dict get $host_data rac_cmd]
}
} else {
@ -110,3 +113,4 @@ if [file exists [file join $dir(work) 1c_srv_new.cfg]] {
}