kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #36440
Re: [PATCH] Tkinter doesn't working in Pcbnew
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
jp charras <jp.charras@xxxxxxxxxx>
-
Date:
Tue, 10 Jul 2018 17:58:48 +0200
-
In-reply-to:
<CADfv2UWZUsUBwb6m+_cnS6DRKN_J=sdT4H12FwbL0HQXwpywxw@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Thunderbird/52.9.0
Le 08/07/2018 à 06:18, Константин Барановский a écrit :
> The Tkinter module is the standard Python interface to the Tk GUI toolkit.
> Inside KiCad Tkinter doesn't work and gives next error:
>
> from Tkinter import *
> root = Tk()
> Traceback (most recent call last):
> File "<input>", line 1, in <module>
> File "C:\Program Files\KiCad\lib\python2.7\lib-tk/Tkinter.py", line 1814, in __init__
> baseName = os.path.basename(sys.argv[0])
> AttributeError: 'module' object has no attribute 'argv'
>
>
> Attached patch resolves this issue by transfering values of argc and argv variables to python
> environment.
>
> For more details see:
> https://github.com/KiCad/kicad-winbuilder/issues/60
>
Hi Konstantin,
I committed your patch, as Tkinter could be an alternative for users who want
to display a Python dialog frame inside Pcbnew when wxPython is not working.
--
Jean-Pierre CHARRAS
Follow ups
References