File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ namespace eval main {
71
71
wm minsize $dan(WIN) [expr $dan(WIDTH) -600] [expr $dan(HEIGHT) -600]
72
72
wm maxsize $dan(WIN) [expr $dan(WIDTH) +400] [expr $dan(HEIGHT) +300]
73
73
wm attributes $dan(WIN) -fullscreen 0
74
- wm protocol . WM_DELETE_WINDOW { radxide::quit }
74
+ wm protocol $dan(WIN) WM_DELETE_WINDOW { radxide::quit }
75
75
76
76
catch {focus -force $dan(TEXT) }
77
77
Original file line number Diff line number Diff line change 28
28
#
29
29
# ##########################################################
30
30
31
- set version " 1.4.8 "
31
+ set version " 1.5.0 "
32
32
set os " $::tcl_platform(os) $::tcl_platform(osVersion) "
33
33
34
34
package provide radxide $version
@@ -215,8 +215,17 @@ namespace eval radxide {
215
215
# w - not used
216
216
# res - result of running of main window
217
217
# ask - if "yes", requests the confirmation of the exit
218
-
219
- exit 0;
218
+
219
+ set answer [tk_messageBox -message " Really quit RADXIDE?" \
220
+ -icon question -type yesno \
221
+ -detail " Select \" Yes\" to make the application exit" ]
222
+
223
+ switch -- $answer {
224
+ yes exit 0
225
+ no
226
+ }
227
+
228
+ return
220
229
}
221
230
222
231
# __________________ raise_window ___________________ #
You can’t perform that action at this time.
0 commit comments