Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
par7133 committed Feb 19, 2024
1 parent f0da04b commit 4a0f947
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace eval main {
wm minsize $dan(WIN) [expr $dan(WIDTH)-600] [expr $dan(HEIGHT)-600]
wm maxsize $dan(WIN) [expr $dan(WIDTH)+400] [expr $dan(HEIGHT)+300]
wm attributes $dan(WIN) -fullscreen 0
wm protocol . WM_DELETE_WINDOW { radxide::quit }
wm protocol $dan(WIN) WM_DELETE_WINDOW { radxide::quit }

catch {focus -force $dan(TEXT)}

Expand Down
15 changes: 12 additions & 3 deletions radxide.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#
###########################################################

set version "1.4.8"
set version "1.5.0"
set os "$::tcl_platform(os) $::tcl_platform(osVersion)"

package provide radxide $version
Expand Down Expand Up @@ -215,8 +215,17 @@ namespace eval radxide {
# w - not used
# res - result of running of main window
# ask - if "yes", requests the confirmation of the exit

exit 0;

set answer [tk_messageBox -message "Really quit RADXIDE?" \
-icon question -type yesno \
-detail "Select \"Yes\" to make the application exit"]

switch -- $answer {
yes exit 0
no
}

return
}

# __________________ raise_window ___________________ #
Expand Down

0 comments on commit 4a0f947

Please sign in to comment.