Le 10/07/2018 à 21:14, [email protected] a écrit :
> As a developer of several plugins I am extremely grateful for this patch (and 
> its approval before
> V5). Now I only have to migrate my GUI code.
> 
> Mitja Nemec

We will be happy to receive a example of a Python action script using a GUI 
code not based on wxPython.


> 
> On Tuesday, 10 July 2018, 17:59:03 CEST, jp charras <[email protected]> 
> wrote:
> 
> 
> 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


-- 
Jean-Pierre CHARRAS

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to