TkMessageBox - Using sys.exit() is a a great pain. Looking for othersimilar commands.

D

dudeja.rajat

Hi,

I'm using a TkMessageBox for handling some errors and displaying them
through the message boxes.

My code is as below:
if selectedVer == strNoArchivedResults:
tkMessageBox._show("Error", \
type='ok', icon='error', \
message="Cannot perform Results
Comparison as no results are currently archived for this library")
sys.exit()

This message box is displayed when the above comdition is met:
Using sys.exit() is a great pain since this closes my parent GUI ( the
main GUI).

Please suggest some other way around.


Thanks and regards,
Rajat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top