← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Tkinter doesn't working in Pcbnew

 

Le 08/07/2018 à 09:30, Nick Østergaard a écrit :
> I have tested this on windows. I don't know if it is any problem on other platform, I would not
> expect it to be.

I have tested it on W7 and Linux Ubuntu, and it works fine (I can run Tkinter._test()).
@konstantin, do you have some interesting action script that uses Tkinter as an example.


Now we cannot use wxPython on many Linux distrib, Tkinter could be an alternative for users who want
to display a Python dialog frame inside Pcbnew.

> 
> Den søn. 8. jul. 2018 kl. 06.18 skrev Константин Барановский <baranovskiykonstantin@xxxxxxxxx
> <mailto:baranovskiykonstantin@xxxxxxxxx>>:
> 
>     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
>     _______________________________________________
>     Mailing list: https://launchpad.net/~kicad-developers <https://launchpad.net/%7Ekicad-developers>
>     Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>     Unsubscribe : https://launchpad.net/~kicad-developers <https://launchpad.net/%7Ekicad-developers>
>     More help   : https://help.launchpad.net/ListHelp
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 


-- 
Jean-Pierre CHARRAS


Follow ups

References