[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 8.6)

[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
New submission from wysaard: I'm using Python 3.5.1 on Arch Linux. I've restalled the python package which provides IDLE, and the tkinter package which is used by IDLE, but to no effect. My problem is this: When in the menu at the top in IDLE, I click on Options -> Configure IDLE, the menu