[issue26673] Tkinter error when opening IDLE configuration menu (Tcl/Tk 8.6)

2017-09-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3652 ___ Python tracker ___

[issue26673] Tkinter error when opening IDLE configuration menu (Tcl/Tk 8.6)

2016-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would like to change the code a bit more (like using IntVar for size everywhere), but I don't want to do so without tests. The problem is that tk variables and font functions require a root window and none of the linux buildbots allow that. (They all run

[issue26673] Tkinter error when opening IDLE configuration menu (Tcl/Tk 8.6)

2016-05-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset a873265366ba by Terry Jan Reedy in branch '2.7': Issue #26673: Protect IDLE from Linux fonts with reported default size 0. https://hg.python.org/cpython/rev/a873265366ba New changeset 1464df337152 by Terry Jan Reedy in branch '3.5': Issue #26673:

[issue26673] Tkinter error when opening IDLE configuration menu (Tcl/Tk 8.6)

2016-05-22 Thread Odcar
Odcar added the comment: Terry J. Reedy: That fixes the problem for me! Xubuntu 16.04, Python 2.7.11+, Tk 8.6.5. I have not tried it in Idle for Python 3 though. -- nosy: +Odcar ___ Python tracker

[issue26673] Tkinter error when opening IDLE configuration menu (Tcl/Tk 8.6)

2016-05-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Anyone seeing problem: In /Lib/idlelib/configHandler.py, about line 685, in "if size < 0:", change '<' to '<='. Remove the workaround of overriding 'TkFixedFont' with 'courier'. Does this fix the problem? -- ___

[issue26673] Tkinter error when opening IDLE configuration menu (Tcl/Tk 8.6)

2016-05-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, changing the default font from Courier to TkFixedFont has introduced or exposed a bug in any of IDLE, tkinter, or tk 8.6.4 on Linux. The result is that trying to open the configuration menu fails with TclError. What do your think is the best solution?

[issue26673] Tkinter error when opening IDLE configuration menu (Tcl/Tk 8.6)

2016-05-09 Thread Matthias Klose
Matthias Klose added the comment: using this as a work-around, not tested with Tcl/Tk 8.5 or older. --- a/Lib/idlelib/configDialog.py +++ b/Lib/idlelib/configDialog.py @@ -113,7 +113,11 @@ class ConfigDialog(Toplevel): def CreatePageFontTab(self): parent = self.parent -

[issue26673] Tkinter error when opening IDLE configuration menu (Tcl/Tk 8.6)

2016-05-09 Thread Matthias Klose
Matthias Klose added the comment: Seen on Debian and Ubuntu as well. All these distros have in common to use Tcl/Tk 8.6. -- nosy: +doko title: Tkinter error when opening IDLE configuration menu -> Tkinter error when opening IDLE configuration menu (Tcl/Tk

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-13 Thread Petr Viktorin
Petr Viktorin added the comment: Indeed, the size is 0 there: {'family': 'DejaVu Sans Mono', 'size': 0, 'slant': 'roman', 'weight': 'normal', 'overstrike': 0, 'underline': 0} -- ___ Python tracker

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you. I believe a see a bug in configHandler.)idleConf.GetFont(self, 'main', 'EditorWindow') returning a size of 0. Could you post the result of running the following for the bad case? import tkinter as tk from tkinter.font import Font root=tk.Tk() f =

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-12 Thread Petr Viktorin
Petr Viktorin added the comment: buggy: configuredFont: ('DejaVu Sans Mono', 0, 'normal') fontSize: 0 good: configuredFont: ('courier', 10, 'normal') fontSize: 10 -- ___ Python tracker

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: #24745 changed the default fixed font from Courier to TkFixedFontin 3.5.0, 3.4.4, and 2.7.11 when using tcl/tk 8.5+. On some OSes, the latter is not Courier and looks much better. I don't know why the two behave differently on some systems. Since this is

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-11 Thread Petr Viktorin
Petr Viktorin added the comment: I can reproduce this with Python 2.7.11 and somewhat recent build from hg default (3.6.0a0) on Fedora 23. Putting these lines in my personal config-main.cfg solves this:: [EditorWindow] font= courier idlelib/config-main.def has a different default::

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-02 Thread wysaard
wysaard added the comment: For some reason the freshly downloaded files have this problem too. If I remove my config-main.def and let my package manager get a new one it breaks again. I don't really know the implications of this; is this just a problem with my particular setup or does this

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should have thought of .idlerc as being a possible problem. The usual fix is to delete its contents. For this tracker, exiting with a traceback is a behavior issue; a crash is something worse, a core dump or whatever the MAC equivalent is. .idlerc should

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-01 Thread wysaard
wysaard added the comment: I just fixed this problem. In my ~/.idlerc/ folder there was no `config-main.cfg` so I created it and used the settings found here: https://svn.python.org/projects/python/trunk/Mac/IDLE/config-main.def After doing that everything worked fine again. I'm not sure

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-01 Thread wysaard
wysaard added the comment: In the screen of `About IDLE` it shows "Tk version 8.6.4". It used to work, as least since last september (when I installed this) I've had no problems. I assumed reinstalling would solve it but that did nothing. I've removed the entire python package, made my package

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, what do you make of the TclError? Could it be an ArchLinux-specific bug in tk? Here is the entire function: def SetFontSample(self, event=None): fontName = self.fontName.get() fontWeight = tkFont.BOLD if self.fontBold.get() else

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-01 Thread SilentGhost
Changes by SilentGhost : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue26673] Tkinter error when opening IDLE configuration menu

2016-04-01 Thread wysaard
wysaard added the comment: I'm having the problem if I'm running idle with Python 2.7.11 too. -- ___ Python tracker ___

[issue26673] Tkinter error when opening IDLE configuration menu

2016-03-30 Thread SilentGhost
Changes by SilentGhost : -- components: +Tkinter nosy: +gpolo, kbk, roger.serwy, serhiy.storchaka, terry.reedy ___ Python tracker

[issue26673] Tkinter error when opening IDLE configuration menu

2016-03-30 Thread wysaard
cmd)) + self._options(cnf)) _tkinter.TclError: expected integer but got "" I have no idea what to do here. -- components: IDLE messages: 262670 nosy: wysaard priority: normal severity: normal status: open title: Tkinter error when opening IDLE configuration menu type: crash version

Re: Py2App - Could not import Tkinter error from resulting app

2014-10-21 Thread Noble Bell
On Monday, October 20, 2014 11:07:51 PM UTC-5, Terry Reedy wrote: tkinter imports _tkinter _tkinter connects with tclx.dll and tkx.dll (x is variable) So one possibility is no accessible tcl/tx. I have no idea how py2app is supposed to handle this on your undisclosed system. --

Re: Py2App - Could not import Tkinter error from resulting app

2014-10-21 Thread Skip Montanaro
On Tue, Oct 21, 2014 at 8:20 AM, Noble Bell nobleb...@gmail.com wrote: I realized this problem shortly after I posted the question and tried to go back to google groups and delete my post before anyone had seen it. In general, that won't work, as lots of people use email (

Py2App - Could not import Tkinter error from resulting app

2014-10-20 Thread Noble Bell
I have just created a python 3.4 application and created the setup.py file and then created an app with py2app. When I ran the resulting application I get an error in the console telling me that it could not import tkinter. Any ideas on how to correct this? Did I do something wrong? --

Re: Py2App - Could not import Tkinter error from resulting app

2014-10-20 Thread Terry Reedy
On 10/20/2014 9:29 PM, Noble Bell wrote: I have just created a python 3.4 application and created the setup.py file and then created an app with py2app. When I ran the resulting application I get an error in the console telling me that it could not import tkinter. Any ideas on how to correct

Tkinter error

2010-05-27 Thread ipatrol6010
I run a program (important parts at http://paste.pocoo.org/show/219148/) and all I get is this error: warning: callback failed in WindowList class '_tkinter.TclError' : invalid command name .45328424.windows Why? P.S.: Please CC all replies to me, I don't watch the list --

Tkinter error

2007-05-28 Thread BartlebyScrivener
Finally started trying to build a simple gui form for inserting text data into a mysql db of quotations. I found this nice Tkinter tutorial, http://www.ibiblio.org/obp/py4fun/gui/tkPhone.html but midway I'm getting an error. from Tkinter import * win = Tk() f = Frame(win) b1 = Button(f,

Re: Tkinter error

2007-05-28 Thread Peter Otten
BartlebyScrivener wrote: Finally started trying to build a simple gui form for inserting text data into a mysql db of quotations. I found this nice Tkinter tutorial, http://www.ibiblio.org/obp/py4fun/gui/tkPhone.html but midway I'm getting an error. from Tkinter import * win =

Re: Tkinter error

2007-05-28 Thread BartlebyScrivener
On May 28, 4:57 pm, Peter Otten [EMAIL PROTECTED] wrote: b1 = Button(win,text=One) b2 = Button(win,text=Two) That worked. Thank you. Rick -- http://mail.python.org/mailman/listinfo/python-list