← Back to team overview

kicad-developers team mailing list archive

Re: FreeCAD StepUp tools Openfile dialog issue on OSX

 

Ok so it seems related to osx and qtgui...
I'm going to check, but I could only on Lion 10.7
I will update asap
Maurice

On 14 December 2015 18:44:54 CET, "Jose A. Saumell" <saumell.jose@xxxxxxxxx> wrote:
>Hi Maurice,
>
>It is not related to the .kicad_mod file. Failed with with many I
>tried.
>The Macro did not load the 'name' variable from the opendialog window.
>It
>came back empty and thus the next if statement gave false result:
>
>  if len(name) > 0:
>
>            txtFile = open(name,"r")
>
>            content = txtFile.readlines()
>
>            content.append(" ")
>
>            last_file_path=os.path.dirname(txtFile.name)
>
>            txtFile.close()
>
>On Mon, Dec 14, 2015 at 2:33 PM easyw <easyw@xxxxxxxxxxxx> wrote:
>
>> Hi Jose,
>>
>> if you post the .kicad_mod file I will check it
>> (better if zipped)
>>
>> PS which is the version of kicad StepUp tools you are using?
>>
>> Maurice
>>
>> On 14/12/2015 16.43, Jose A. Saumell wrote:
>> > Hi,
>> >
>> > I've ran into an issue whenever I had to use the StepUp tools on
>Freecad
>> > to open a footprint and do the alignment of 3D model.
>> >
>> > I would get an open file dialog but nothing would happen after
>selecting
>> > the .kicad_mod file.
>> >
>> > Inside kicad-StepUp-tools.FCMacro:
>> > The name[0] variable would return an empty value.
>> >
>> > I worked around the problem by not using native OSX Open file
>dialog:
>> > //
>> >
>> > name=QtGui.QFileDialog.getOpenFileName(self, 'Open file',
>> > last_file_path,"kicad module files (*.kicad_mod)",
>> > options=QtGui.QFileDialog.DontUseNativeDialog )[0]
>> >
>> > //
>> >
>> > This is working for me now, not sure exactly why it is not working
>with
>> > native OSX dialog.
>> >
>> >
>> > Cheers, Jose
>> >
>> >
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > 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
>> >
>>

-- 
Sent from Mobile

References