Import Tkinter Library

Why do I report the following error when importing the Tkinter library?

How can I solve this problem?

Hi,

Unfortunately the python embedded in VC 4.X doesn’t support tkinter.

-k

Hi,

Which kind of GUI development library does Python support in VC4.1?

VC python doesn’t really support any 3rd party GUI libraries. You can use built-in action panel and some dialogs but beyond that you should consider switching to .NET API which allows you to make much more visual plugins.

Documentation about python add-on UI (action panel) can be found in the help file under topic “Creating a Python Add-on”. Under “vcCommand” topic there is listing of some built-in commands that include basic save and open file dialogs. “vcApplication” also has method messageBox for displaying simple message boxes.

-k

Thanks for your reply!

I also want to know if we can support the use of the flask framework? If so, what environment do I need to build?

I am not familiar with flask. But I’m guessing it’s the same with that as with tkinter and VC doesn’t work with it.

-k

Ok, thank you!