TkMessageBox - Using sys.exit() is a a great pain. Looking for other similar commands.
Guilherme Polo
ggpolo at gmail.com
Mon Sep 1 16:26:59 EDT 2008
On Mon, Sep 1, 2008 at 3:35 PM, <dudeja.rajat at gmail.com> wrote:
> 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")
Note that you are not supposed to use _show, use showerror here instead.
> 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).
Remove the call to sys.exit then ?
>
> Please suggest some other way around.
Your ask for a suggestion doesn't make much sense to me, try writing
what are you trying to achieve.
>
>
> Thanks and regards,
> Rajat
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
-- Guilherme H. Polo Goncalves
More information about the Python-list
mailing list