Re: Tkinter - resize tkMessageBox

2007-06-11 Thread Cameron Laird
In article [EMAIL PROTECTED], I wondered:
In article [EMAIL PROTECTED],
Glenn Hutchings  [EMAIL PROTECTED] wrote:
On 4 Jun, 21:29, [EMAIL PROTECTED] wrote:
 Is there a way to resize the width of the tkMessageBox.askyesno
 dialog box, so that the text does not wrap to the next line.

You can use the Tk option database, either explicitly or from a file.
For example, to set the wrap length of all dialogs to 10 inches, try
this:

   root = Tk()
   root.option_add(*Dialog.msg.wrapLength, 10i)
   .
   .
   .
But that does *not* affect the MessageBoxes under MacOS and Windows, right?

I apologize for my coyness.  I'll be explicit:  current MessageBoxes
under MacOS and Windows (but NOT X11-based MessageBoxes, as with Linux)
do NOT respect Dialog options.  Tkinter will presumably build in Tile 
capabilities in the future; then the default appearances may change
again.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tkinter - resize tkMessageBox

2007-06-05 Thread Glenn Hutchings
On 4 Jun, 21:29, [EMAIL PROTECTED] wrote:
 Is there a way to resize the width of the tkMessageBox.askyesno
 dialog box, so that the text does not wrap to the next line.

You can use the Tk option database, either explicitly or from a file.
For example, to set the wrap length of all dialogs to 10 inches, try
this:

   root = Tk()
   root.option_add(*Dialog.msg.wrapLength, 10i)

Regards,

Glenn

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tkinter - resize tkMessageBox

2007-06-05 Thread Cameron Laird
In article [EMAIL PROTECTED],
Glenn Hutchings  [EMAIL PROTECTED] wrote:
On 4 Jun, 21:29, [EMAIL PROTECTED] wrote:
 Is there a way to resize the width of the tkMessageBox.askyesno
 dialog box, so that the text does not wrap to the next line.

You can use the Tk option database, either explicitly or from a file.
For example, to set the wrap length of all dialogs to 10 inches, try
this:

   root = Tk()
   root.option_add(*Dialog.msg.wrapLength, 10i)
.
.
.
But that does *not* affect the MessageBoxes under MacOS and Windows, right?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tkinter - resize tkMessageBox

2007-06-05 Thread Cameron Laird
In article [EMAIL PROTECTED],
jim-on-linux  [EMAIL PROTECTED] wrote:
On Monday 04 June 2007 16:29, [EMAIL PROTECTED] 
wrote:
 Hi,
 Is there a way to resize the width of the
 tkMessageBox.askyesno dialog box, so that the
 text does not wrap to the next line. Thanks
 Rahul
I don't know of any.
It's a little more work but your better off using 
Toplevel and/or frame, you have more control over 
the window and its appearance.
.
.
.
Yes and no.  Yes, synthesizing ones own MessageBox gives greater
control, but that becomes a non-native MessageBox which is 
alleged to discomfort some end-users.

'Nother way to say this:  tkMessageBox is implemented in terms of
native widgets, as much as possible, and native MessageBoxes on
at least some platforms do NOT provide for resizing or width 
control.
-- 
http://mail.python.org/mailman/listinfo/python-list


Tkinter - resize tkMessageBox

2007-06-04 Thread rahulnag22
Hi,
Is there a way to resize the width of the tkMessageBox.askyesno
dialog box, so that the text does not wrap to the next line.
Thanks
Rahul

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tkinter - resize tkMessageBox

2007-06-04 Thread jim-on-linux
On Monday 04 June 2007 16:29, [EMAIL PROTECTED] 
wrote:
 Hi,
 Is there a way to resize the width of the
 tkMessageBox.askyesno dialog box, so that the
 text does not wrap to the next line. Thanks
 Rahul
I don't know of any.
It's a little more work but your better off using 
Toplevel and/or frame, you have more control over 
the window and its appearance.

jim-on-linux
http://www.inqvista.com
-- 
http://mail.python.org/mailman/listinfo/python-list