How to Run a Python Development as Web App

How to Run a Python Development as Web App

Have a Python application and want to run it on the web? Thinfinity® VirtualUI is a windows software virtualization solution. By adding a piece of code to your Python app source you can then run it within a web browser and access it from any OS. Run your regular desktop applications from your browser, without even having to install them on the computer! Let’s learn more about this HTML5 solution for Python apps!


How to Run Python Development as a Web App

In order to move your Python application to the web with VirtualUI, you’ll need to add some code lines to your application.
First, we need to add an import from win32com.client:
import win32com.client


Then, create an object calling the Thinfinity.VirtualUI library:
self.VirtualUI = win32com.client.Dispatch(“Thinfinity.VirtualUI”)


And last but not least, you need to the VirtualUI.Start() method right before the mainloop() starts:

def run(self):
self.VirtualUI.Start (60)
self.tkRoot.mainloop()


Below you’ll find a link for a demo for VirtualUI with Python:

https://www.cybelesoft.com/support/files/DemosVUI/Python_Notepad_VirtualUI.zip
In order for the demo to work, you’ll need to install VirtualUI on the development machine where Python is installed.

Once you modify the application, you need to publish the application like this:


If you have any further inquiries or need additional support, please do not hesitate to reach out to us. Our team is always available to help address any questions or concerns you may have.


    • Related Articles

    • How to Run a .NET Application in a Web Browser

      Overview Note Pre-requisites: To proceed with this tutorial, you may need to register a trial license for the VirtualUI Development Server, Learn how to do it in this article. Now you are ready to get started. Let’s take your program to the cloud! ...
    • Thinfinity® VirtualUI: Testing with Development Server

      Product: Thinfinity VirtualUI Version: 3 and above Introduction Thinfinity VirtualUI is a software solution designed to simplify web integration for Windows-based applications. This guide will walk you through the process of getting started with ...
    • Run VB.Net Software as a Web Application

      In this new article, we will show you how to adapt your Visual FoxPro code so you can run VB.Net developments in the cloud with Thinfinity VirtualUI. App example: https://www.cybelesoft.com/support/files/DemosVUI/VBNet.zip Bear in mind in this ...
    • Running a Qt App over the Web

      Qt is a modern cross-platform development framework with a single codebase providing common APIs across many platforms. When the web-version qt provides is not enough to take your desktop app to the web the way you planned, Thinfinity® VirtualUI can ...
    • How to Run an OpenEdge Application Inside the Web Browser

      Client-server applications are expensive and tough to maintain. Working on an entirely new web application alternative becomes unfeasible if your time is limited or your resources are scarce. Save time and money by webifying your application with ...