Jump to content

PyQt5 and Vectorworks


Recommended Posts

I am trying to integrate Vectorworks into our existing production pipeline. We have a number of generic workflow tools for managing files, etc, that I want to re-use. These tools are written using one of the Python Qt bindings (we use the Qt.py shim to deal with the fact that there are four competing flavors of PyQt/PySide in the wild). As far as I can tell, Vectorworks ships with the Qt5 libraries.

I did some tests over the weekend at home on a Windows machine and successfully got Python script to run that showed a QMesssageBox dialog. Unfortunately, when I got to work Monday and tried to pull of the same feat on a Mac machine, and it crashed Vectorworks immediately.

Has anyone successfully gotten PyQt5 (or any other flavor, I'm not picky) running in Vectorworks? 

Thank you

EDIT:

I've been chipping away at this problem all day and now I've gotten it to where I can pop a QMessageBox dialog ... but it makes the Vectorworks main menu disappear and I have to restart to get it back. As far as I can tell it's because PyQt5 doesn't think that there is a QApplication instance already running - starting my own is what makes the menu disappear. 

Edited by Ryan Porter
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...