[issue23533] MacOSX Python child process running urlopen crashed when tkMessageBox is imported

2015-02-27 Thread Ned Deily
Ned Deily added the comment: I was able to reproduce this and from the system crash report it appears that this is a duplicate of Issue20585. The workaround noted there should work for you here: define a no_proxy environment variable to prevent Python from attempting to call the System

[issue23533] MacOSX Python child process running urlopen crashed when tkMessageBox is imported

2015-02-26 Thread vinod sharma
New submission from vinod sharma: I've have an application which uses tkMessageBox module, multiprocessing module and urllib2 module. For some unknown reason, python child process is crashing silently while fetching a url. This only happens when tkMessageBox module is imported. Sample code

[issue23533] MacOSX Python child process running urlopen crashed when tkMessageBox is imported

2015-02-26 Thread R. David Murray
R. David Murray added the comment: When you say 'crash silently', what exactly do you mean? How are you running the program? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23533

Re: tkMessageBox

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

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

2010-10-18 Thread Chris Rebert
On Mon, Oct 18, 2010 at 11:32 AM, richard catbird.isl...@gmail.com 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

[issue4961] Inconsistent/wrong result of askyesno function in tkMessageBox

2010-03-19 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: committed to the 2.6 branch as well -- assignee: gpolo - status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4961 ___

[issue4961] Inconsistent/wrong result of askyesno function in tkMessageBox

2010-03-16 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: the patch works for me with tcl8.5 -- nosy: +doko stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4961 ___

[issue4961] Inconsistent/wrong result of askyesno function in tkMessageBox

2010-03-16 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: fixed for 2.7, 3.1, 3.2, commit pending for 2.6 until after the 2.6.5 release -- resolution: - fixed status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4961

[issue4961] Inconsistent/wrong result of askyesno function in tkMessageBox

2010-01-11 Thread Kirk Vander Meulen
). But I did find a hack around this by explicitly creating and destroying a top level window following the askdirectory() dialog. Try this snippet on linux/unix, the call to askyesno() returns False always. import tkFileDialog,tkMessageBox,Tkinter theDirectory=tkFileDialog.askdirectory

[issue4961] Inconsistent/wrong result of askyesno function in tkMessageBox

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I guess this will have to be accepted without any tests, unless someone can come up with a way to test tk_messageBox under Windows and Mac. -- keywords: +patch Added file: http://bugs.python.org/file14333/stringify.diff

[issue4961] Inconsistent/wrong result of askyesno function in tkMessageBox

2009-04-22 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I've verified it, it is indeed a bug in tkMessageBox.py which is very likely to be noticed while using tk 8.5 or newer. -- assignee: - gpolo nosy: +gpolo versions: +Python 2.7, Python 3.0, Python 3.1

[issue4961] Inconsistent/wrong result of askyesno function in tkMessageBox

2009-04-22 Thread Guilherme Polo
Changes by Guilherme Polo ggp...@gmail.com: -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4961 ___ ___ Python-bugs-list

[issue4961] Inconsistent/wrong result of askyesno function in tkMessageBox

2009-01-16 Thread eb303
cause: the result of the _show function in tkMessageBox is not always a string, apparently depending on what happened before. Changing the last line to: return str(res) seemed to correct the problem for me. -- components: Tkinter files: dialog-bug.py messages: 79944 nosy: eb303 severity

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='ok', icon='error

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._show(Error

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 as below: import tkMessageBox import Tix from Tkinter import

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, \ type

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 * if len(installedLibPath) != len(listOfLibraries

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 are running

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-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 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-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. So,

Re: Error with Tkinter and tkMessageBox

2007-08-01 Thread John McMonagle
Tkinter import * from tkMessageBox import * def reply(): showinfo(title='ciao', message='hello') win = Tk() but = Button(win, text='press me', command=reply) but.pack() win.mainloop() ## these are versions: python: 2.4.4

Error with Tkinter and tkMessageBox

2007-07-31 Thread Fabio Z Tessitore
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 ## from Tkinter import * from tkMessageBox import * def reply

Re: Error with Tkinter and tkMessageBox

2007-07-31 Thread kyosohma
## from Tkinter import * from tkMessageBox import * def reply(): showinfo(title='ciao', message='hello') win = Tk() but = Button(win, text='press me', command=reply) but.pack() win.mainloop() ## these are versions: python

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: code from Tkinter import * from tkMessageBox import showinfo def reply(): showinfo(title='ciao', message='hello

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: code from Tkinter import * from tkMessageBox import showinfo

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

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]

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 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 shouldn't

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 Windows (any flavour) the tkMessagebox

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 popup. As an

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 titlebar as my

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

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 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

Re: Tkinter - resize tkMessageBox

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

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,

Re: tkinter btn visual state with tkMessageBox

2006-08-20 Thread Hendrik van Rooyen
import * | | import tkMessageBox | | | | class Vue(object): | | def __init__(self): | | self.root=Tk() | | self.root.title(test button visual state) | | self.b1=Button(self.root,text=tkMessageBox.showinfo with bind | | :-() #,command=self.showMsg

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: python-list@python.org | | | | why is the button sunken when called through a bind method, and not | | with the command attribute? | | Thank you! | | | | |

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 visual state

Re: tkinter btn visual state with tkMessageBox

2006-08-19 Thread Hendrik van Rooyen
[EMAIL PROTECTED] wrote: To: python-list@python.org | 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

Re: tkinter btn visual state with tkMessageBox

2006-08-19 Thread jmdeschamps
Hendrik van Rooyen wrote: [EMAIL PROTECTED] wrote: To: python-list@python.org | 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

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 hide the self created tk window while showing

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 click on either of the yes

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 while showing the message box. If you find

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 parent window of the message box. If I click