Merging Anvil with GUI library like PyQt or Tkinter

Hello everyone! Does anybody know if it is possible to merge Anvil with a GUI library such as PyQt or Tkinter? I am currently usinig anvil to upload an image to my app, but then I would like to run another user interface using the mentioned libraries. Any help would be much appreciated!

See Uplink: Code outside Anvil, for a way to make desktop apps communicate with Anvil. Your desktop app can use any user interface library (or none), as you see fit.

This can work very well for desktop apps used in simple situations, i.e., by a limited number of trusted people. Bigger, more complicated situations require some thought and effort, to deal with those complications effectively.

+1 for everything @p.colbert said, I would also add if you are looking at creating something like a management interface as a python program running on your desktop, the latest and greatest is the C++ library imgui. Since we don’t write in C here there is a wrapper called pyimgui that brings a very modern looking UI and menus and can be run using python.
This means it can also use anvil uplink to directly interface with your web app.

Here’s an example of a demo running directly from a python script in windows:

pyimgui

1 Like