A tkMessageBox question!

Sylvie Bruneau sylvieb at icestormfx.com
Thu Apr 20 09:11:19 EDT 2000


Hi Sue.

    Thank you for giving a try, but it doesn't work.  The tkMessageBox must be used
in that way :

tkMessageBox.function( title, message [, options] )

    where function can be showinfo, showwarning, showerror, askquestion, askokcancel,
askyesno, or askretryignore and options can be default, icon, message, parent, title
and type.  And as soon as you call one of these functions, the dialog is popped up,
ie, it is too late to try anything on the look.

    I really think there is no way to do this !

Sly


sue wrote:

> I don't remember the exact syntax, but try:
>
> msg = TkMessageBox("text")
> msg.configure( font = "something_decent" ).
>
> You might have to check that the font exists.
>
> Sue.

--
/=-/=-/=-/=-/=-/=-/=-/=-/=-/=-/=-/=-/=-/=-/=-/=-/=-/=-/=-/=-/
Sylvie Bruneau ( sylvieb at icestormfx.com ) Tel: (514) 527-3963
Software Developer, IceStorm Digital.     Fax: (514) 527-5165
2595 Place Chasse, Montreal, Quebec, H1Y 2C3.

La vie est un cadeau parfois difficile a deballer. (P. Brassard)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000420/f9b88645/attachment.html>


More information about the Python-list mailing list