I have wrote python(2.7) GUI desktop application using TKinter library and it is working fine. Now i want to convert it into web application. I have looked into pyjaco and pyjamas but not getting it done.
How can i convert it into Web App ?
Thanks in advance..
You will have to rewrite your app. There is simply no way to convert a tkinter application to run on the web. You could potentially use pyjs to convert some of the business logic, but the entire GUI will have to be rewritten.
You can use CloudTk.
CloudTk is based on WebSockit2me - a TCP to WebSocket gateway that uses a noVNC to display Tk applications in modern Web Browser.
Related
I have created a chatbot using nltk, keras and tkinter . And i have also created a website using python and flask . how can i intergrate both of them. i.e i can i make my chatbot run after the website gets open(run)
when i am importing the chatgui.py(this is chat bot file) and executing it in my main.py(this is the python file file that is building the website using the flask framework) , only any one of them is running, not the both.
Plz suggest me some idea , how can i make both of them run.
When a client visits your site, the client computer will not execute python code. Only the server side will execute the python code, so the tkinter part of your app is not needed. The user's gui is rendered with html/javascript in their browser.
There are a lot of ways to go about it, but I think the most common approach would be to scrap the GUI part written with tkinter, and instead re-create a javascript based GUI that will be served by flask. Have chats instead pass between the client and server with javascripts fetch api.
I am running a Python program using Kivy to create the program's GUI. This works as expected when the program is running on a Desktop on an X11 server. However I want to convert the Python / Kivy program into a stand alone application. A Kiosk application. Instead of running a Desktop and X11 server, I want to convert the Python / Kivy program to write directly to the FramBuffer. This is talked about here in on the Kivy web site. But this does not appear to be a fully functional example program. Any help in explaining how to use the information on this web page or identifying a working Kivy / FrameBuffer project I can inspect would be appreciated.
Kivy doesn't support rendering directly to a linux framebuffer. The fbo documentation you have found is for opengl framebuffer objects.
The exception is for the raspberry pi, on which we supports its particular EGL implementation.
It should be technically possible to support rendering without X, but you'd likely need to write a new Window backend implementing this by setting up the framebuffer to display opengl. I've never seen anyone successfully do this so there are likely no examples.
It's likely to be more straightforward to use a minimal X11 kiosk, or a wayland kiosk may be more lightweight and should work fine.
I have developed a Kivy application and was wondering if it was possible to deploy it as a web app. I've tried using flask but it is running into some problems. I run the Kivy Application by calling the App builder class while flask does something similar. So can anyone direct me to any tutorials or other information about deploying a Kivy Application in a web browser?
I just need the GUI to display in a web browser so I believe the HTML doesn't need to be too extravagant.
Kivy does not currently support working in a browser.
There are some experiments to do it, but the result is very slow, to open and to use, and doesn't work in all browsers; more work is needed, and it's not a priority to us. If you want a web app, use a web technology.
I am a Kivy developer
I have written a game in Tkinter GUI in python. I am able to package the game into an app with py2app. Is it possible to deploy the executable to the mac app store? Do I need to use a different GUI builder? I am using Tkinter because it is default on all macs...
Thanks.
You can use py2app or, as I do, cx_Freeze to deploy a Tkinter app to the Mac App Store. See https://itunes.apple.com/us/app/quickwho/id419483981?mt=12 for an example.
I don't think this operability is high, because one of my small Python programs based on Tkinter's 200 lines of code was rejected for the following reasons:
Your app uses or references the following non-public APIs:
• Contents/Frameworks/libtk8.6.dylib/NSDrawerWindow
The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.
I have a website with miniwebhost.com, which supports python. I want to have a page that runs one of my text based games I have made on Python. So, how would I go about doing it? I know I have to make it executable and something about a cgi-bin(which I have). Put your answer in clear steps please.
Site is: www.rosshudson.co.uk/
Python web applications are often hooked to the web server (e.g. Apache httpd) using the WSGI module. Note that your app need to handle the HTTP requests correctly either by using a framework (like Django) or the BaseHttpServer, BaseHttpRequestHandler from the standard library.