Jump to content

Vectorworks and Tkinter

Recommended Posts


I am developing Plug-Ins for Vectorworks 2016.

There were no greater issues while running a Python script  in Vectorworks on a Windows 7 Machine.

When I try to execute the same script on OS X, VW gives the error


Traceback (most recent call last):
  File "Plant.py", line 3, in <module>
    window = Tk()
  File "/python3.3/Lib/tkinter/__init__.py", line 1784, in __init__
    baseName = os.path.basename(sys.argv[0])
AttributeError: 'module' object has no attribute 'argv'

The following code is an extract with causes the error

from tkinter import *

window = Tk()
window.title ('Plant')


Is this a known incompatibility? I consider editing the source of Tkinter but don't know what parameters argv shoud contain in VW on OS X.


Thanks for taking your time.

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.

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...