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)

Below you’ll find a link for a demo for VirtualUI with Python:
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

    • 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 ...
    • 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 ...
    • 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: Bear in mind in this ...
    • 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 ...
    • How to run a WinForms Application Inside the Web Browser

      Do you have a WinForms (C#) application that you wish to publish on the web? Thinfinity® VirtualUI allows you to convert WinForms to web application by adding a small line of code to your C# application so it can then be accessed from any OS and ...