← Back to team overview

kicad-developers team mailing list archive

Re: FreeCAD StepUp tools Openfile dialog issue on OSX

 

Thank you for your positive feedback!
I'm going to update the repo :)

Maurice

On 15/12/2015 18.57, Jose A. Saumell wrote:
Hi Maurice,

That worked for me on OSX 10.9.5 now with native dialog. Thanks!
Jose

On Tue, Dec 15, 2015 at 10:56 AM easyw <easyw@xxxxxxxxxxxx
<mailto:easyw@xxxxxxxxxxxx>> wrote:

    Hi Jose,

    here is the solution for OSX:

    1) add
    import PySide
        just before (line 48 of StepUp tools 1.3.2.8)
    from PySide import QtGui, QtCore
    2) and change
    name=QtGui.QFileDialog.getOpenFileName(self, "Open File...",
    last_file_path, "kicad module files (*.kicad_mod)")[0]
        (line 629,630 of StepUp tools 1.3.2.8)
        with
    name, Filter = PySide.QtGui.QFileDialog.getOpenFileName(None,
          "Open File...", last_file_path, "*.kicad_mod")

    that should work on all platform with native dialog

    If you could confirm me that is fine, I will update the tool on
    repository :)

    thank you
    Maurice

    On 14/12/2015 20.56, Jose A. Saumell wrote:
     > No problem, thank you for the tools, I am working on a new board and
     > using the FreeCAD only workflow. Today created a PCB 3D model in step
     > which is really valuable!
     > Take care
     >
     > On Mon, Dec 14, 2015 at 4:43 PM easyw <easyw@xxxxxxxxxxxx
    <mailto:easyw@xxxxxxxxxxxx>
     > <mailto:easyw@xxxxxxxxxxxx <mailto:easyw@xxxxxxxxxxxx>>> wrote:
     >
     >     Hi Jose,
     >
     >     I can reproduce it in OSX Lion, so I can debug :)
     >
     >     Thank you for reporting it and also for the
    solution-workaround you have
     >     found!
     >
     >     keep in touch
     >     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
    <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
     >     <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx
    <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>>
     >      > Unsubscribe : https://launchpad.net/~kicad-developers
     >      > More help   : https://help.launchpad.net/ListHelp
     >      >
     >



References