Re: tkMessageBox

2010-10-22 Thread Dardo Schuster
Try import tkinter.messagebox as tkMessageBox -- http://mail.python.org/mailman/listinfo/python-list

Re: tkMessageBox

2010-10-18 Thread Chris Rebert
On Mon, Oct 18, 2010 at 11:32 AM, richard wrote: > When I do   import tkMessageBox  the Python Shell tells me that this > does not exist.  Where do I find it? What OS are you using? How did you install Python? Can you `import Tkinter`? Cheers, Chris -- http://blog.rebertia.com --

tkMessageBox

2010-10-18 Thread richard
When I do import tkMessageBox the Python Shell tells me that this does not exist. Where do I find it? You may reply to my academic email: rdrie...@nps.edu -- http://mail.python.org/mailman/listinfo/python-list

Re: TkMessageBox - Using sys.exit() is a a great pain. Looking for other similar commands.

2008-09-01 Thread Guilherme Polo
On Mon, Sep 1, 2008 at 3:35 PM, <[EMAIL PROTECTED]> 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 - Using sys.exit() is a a great pain. Looking for other similar commands.

2008-09-01 Thread 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=&#

Re: Tkinter tkMessageBox problem - message box is displayed with an additional window

2008-08-29 Thread dudeja . rajat
On Thu, Aug 28, 2008 at 3:54 PM, Guilherme Polo <[EMAIL PROTECTED]> wrote: > On Thu, Aug 28, 2008 at 10:29 AM, <[EMAIL PROTECTED]> wrote: >> Hi, >> I'm working on Windows Platform >> >> I'm facing some problem with the tkMessageBox. My code is

Re: Tkinter tkMessageBox problem - message box is displayed with an additional window

2008-08-28 Thread Guilherme Polo
On Thu, Aug 28, 2008 at 10:29 AM, <[EMAIL PROTECTED]> wrote: > Hi, > I'm working on Windows Platform > > I'm facing some problem with the tkMessageBox. My code is as below: > > import tkMessageBox > import Tix > from Tkinter import * > > i

Tkinter tkMessageBox problem - message box is displayed with an additional window

2008-08-28 Thread dudeja . rajat
Hi, I'm working on Windows Platform I'm facing some problem with the tkMessageBox. My code is as below: import tkMessageBox import Tix from Tkinter import * if len(installedLibPath) != len(listOfLibraries): if tkMessageBox.askyesno("Question", \

Re: Error with Tkinter and tkMessageBox

2007-08-03 Thread Fabio Z Tessitore
Il Fri, 03 Aug 2007 12:38:09 +1000, John McMonagle ha scritto: > Fabio Z Tessitore wrote: >> I've tried to use Twm and SURPRISE! it works!!! >> >> Can you say why? How can I fix the prob with Gnome? >> >> Thanks > > I don't know why it doesn't work correctly on the version of gnome which > you

Re: Error with Tkinter and tkMessageBox

2007-08-02 Thread John McMonagle
Fabio Z Tessitore wrote: > I've tried to use Twm and SURPRISE! it works!!! > > Can you say why? How can I fix the prob with Gnome? > > Thanks I don't know why it doesn't work correctly on the version of gnome which you are running (I run KDE). Perhaps the question needs to be posed to a gnome

Re: Error with Tkinter and tkMessageBox

2007-08-02 Thread Fabio Z Tessitore
I've tried to use Twm and SURPRISE! it works!!! Can you say why? How can I fix the prob with Gnome? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Error with Tkinter and tkMessageBox

2007-08-02 Thread Fabio Z Tessitore
Il Thu, 02 Aug 2007 13:54:46 +1000, John McMonagle ha scritto: > What window manager are you using ? Hi John, I'm using gnome, with gdm. Do you think the problem is this? I'm going to try with another one ... bye -- http://mail.python.org/mailman/listinfo/python-list

Re: Error with Tkinter and tkMessageBox

2007-08-01 Thread John McMonagle
line 52, in show > s = w.tk.call(self.command, *w._options(self.options)) > TclError: bad pad value "2m": must be positive screen distance > > > ## > from Tkinter import * > from tkMessageBox import * > > def reply(): > sho

Re: Error with Tkinter and tkMessageBox

2007-08-01 Thread Fabio Z Tessitore
Il Tue, 31 Jul 2007 18:45:57 -0400, jim-on-linux ha scritto: > Try This: > > def reply(): > showinfo('ciao','hello') > I've tried without success ... thanks I've also discovered that when I (or some other prog using tkinter) display menu, the underscore is an ugly little black box.

Re: Error with Tkinter and tkMessageBox

2007-07-31 Thread jim-on-linux
On Tuesday 31 July 2007 15:24, Fabio Z Tessitore wrote: > Il Tue, 31 Jul 2007 19:12:48 +, kyosohma ha scritto: > > I'm not sure, but I don't think you need the > > "win" variable at all. I can get it to work > > as follows: > > > > >

Re: Error with Tkinter and tkMessageBox

2007-07-31 Thread Fabio Z Tessitore
Il Tue, 31 Jul 2007 19:12:48 +, kyosohma ha scritto: > > I'm not sure, but I don't think you need the "win" variable at all. I > can get it to work as follows: > > > > from Tkinter import * > from tkMessageBox import showinfo > > def

Re: Error with Tkinter and tkMessageBox

2007-07-31 Thread kyosohma
le "lib-tk/tkCommonDialog.py", line 52, in show > s = w.tk.call(self.command, *w._options(self.options)) > TclError: bad pad value "2m": must be positive screen distance > > ## > from Tkinter import * > from tkMessa

Error with Tkinter and tkMessageBox

2007-07-31 Thread Fabio Z Tessitore
*options) File "lib-tk/tkMessageBox.py", line 75, in _show res = Message(**options).show() File "lib-tk/tkCommonDialog.py", line 52, in show s = w.tk.call(self.command, *w._options(self.options)) TclError: bad pad value "2m": must be positive screen distance

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

Re: Tkinter, tkMessagebox and overrideredirect

2007-06-07 Thread marcoberi
On Jun 7, 12:01 pm, "Eric Brunel" <[EMAIL PROTECTED]> wrote: > BTW, what are you trying to do here? Will your application run on a > "normal" desktop computer? Or will it run on special devices such as > vending machines or similar? You got it: it's a special device. > in the second case, you sho

Re: Tkinter, tkMessagebox and overrideredirect

2007-06-07 Thread Eric Brunel
On Thu, 07 Jun 2007 09:04:24 +0200, <[EMAIL PROTECTED]> wrote: [snip] > I can't believe there isn't an easier way to make a kiosk application > without titlebar. That's not the problem: there *is* an easy way, and you found it: overrideredirect(1). But now you're trying to mix windows ignored by

Re: Tkinter, tkMessagebox and overrideredirect

2007-06-07 Thread marcoberi
On Jun 6, 3:38 pm, "Eric Brunel" <[EMAIL PROTECTED]> wrote: > My only advice would then be to avoid using the standard functions to > create dialog boxes, and to create them yourself. For example: > -- > from Tkinter import * [snip] > app.roo

Re: Tkinter, tkMessagebox and overrideredirect

2007-06-06 Thread Eric Brunel
On Wed, 06 Jun 2007 14:26:12 +0200, <[EMAIL PROTECTED]> wrote: >> As an aside, having a window with overrideredirect(1) creating "normal" >> windows such as the one created via tkMessageBox.showinfo is asking for >> problems. What are you trying to do here? > > I just need a window without the titl

Re: Tkinter, tkMessagebox and overrideredirect

2007-06-06 Thread marcoberi
On Jun 6, 8:55 am, "Eric Brunel" <[EMAIL PROTECTED]> wrote: > Apparently: Eric, first of all, thanks! > def hello(self): > self.root.after_idle(self.root.lower) > tkMessageBox.showinfo("Popup", "Hello!") Well, this lowers the background frame but I want to keep it visible under the pop

Re: Tkinter, tkMessagebox and overrideredirect

2007-06-06 Thread Eric Brunel
On Tue, 05 Jun 2007 18:18:51 +0200, <[EMAIL PROTECTED]> wrote: > Hi everybody. > > I have this code snippet that shows a window without a titlebar (using > overrideredirect) and two buttons on it: one quits and the other one > brings up a simple tkMessageBox. > On W

Re: Tkinter - resize tkMessageBox

2007-06-05 Thread Cameron Laird
. 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, a

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 e

Tkinter, tkMessagebox and overrideredirect

2007-06-05 Thread marcoberi
Hi everybody. I have this code snippet that shows a window without a titlebar (using overrideredirect) and two buttons on it: one quits and the other one brings up a simple tkMessageBox. On Windows (any flavour) the tkMessagebox brings up over the underlying window. On Linux (apparently any

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 1

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 f

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 btn visual state with tkMessageBox

2006-08-20 Thread jmdeschamps
Hendrik van Rooyen wrote: > <[EMAIL PROTECTED]> Wrote: > | > | Hendrik van Rooyen wrote: > | > <[EMAIL PROTECTED]> wrote: > | > > | > To: > | > > | > > | > | why is the button sunken when called through a bind method, and not > | > | with the command attribute? > | > | Thank you! > | > | > | > |

Re: tkinter btn visual state with tkMessageBox

2006-08-20 Thread Hendrik van Rooyen
t; | ## Cut'nPaste example | > | from Tkinter import * | > | import tkMessageBox | > | | > | class Vue(object): | > | def __init__(self): | > | self.root=Tk() | > | self.root.title("test button visual state") | > | self.b1=Butto

Re: tkinter btn visual state with tkMessageBox

2006-08-19 Thread jmdeschamps
Hendrik van Rooyen wrote: > <[EMAIL PROTECTED]> wrote: > > To: > > > | why is the button sunken when called through a bind method, and not > | with the command attribute? > | Thank you! > | > | > | ## Cut'nPaste example > | from Tkinter import * &

Re: tkinter btn visual state with tkMessageBox

2006-08-19 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> wrote: To: | why is the button sunken when called through a bind method, and not | with the command attribute? | Thank you! | | | ## Cut'nPaste example | from Tkinter import * | import tkMessageBox | | class Vue(object): | def __init__(self): | s

tkinter btn visual state with tkMessageBox

2006-08-19 Thread jmdeschamps
why is the button sunken when called through a bind method, and not with the command attribute? Thank you! ## Cut'nPaste example from Tkinter import * import tkMessageBox class Vue(object): def __init__(self): self.root=Tk() self.root.title("test button vi

Re: tkMessageBox dialog help

2005-05-04 Thread Fredrik Lundh
Harlin Seritt wrote: > >From what I've seen I'm afraid this is the way it is. If you call an > instance of tkMessageBox and you don't have a 'master' Tk instance > running, it will create its own. > > Still, I'm sure with a bit of voodoo you can hid

Re: tkMessageBox dialog help

2005-05-01 Thread garyr
Nathan wrote: > Hi, > > I've been testing the standard dialog boxes in tkMessageBox under IDLE. > If I type for example, tkMessageBox.askyesno('test', 'test'), the dialog box > comes up fine but another window also appears. I'm guessing this is the &

Re: tkMessageBox dialog help

2005-05-01 Thread Harlin Seritt
Nathan, >From what I've seen I'm afraid this is the way it is. If you call an instance of tkMessageBox and you don't have a 'master' Tk instance running, it will create its own. Still, I'm sure with a bit of voodoo you can hide the self created tk window whil

tkMessageBox dialog help

2005-05-01 Thread Nathan
Hi, I've been testing the standard dialog boxes in tkMessageBox under IDLE. If I type for example, tkMessageBox.askyesno('test', 'test'), the dialog box comes up fine but another window also appears. I'm guessing this is the parent window of the message box. If I