I'm creating a game in Python using Tkinter and wanted to use Google App Engine to put my game online.
I just want the link randomappname.appspot.com to go directly to my game, nothing fancy or anything. I never used GAE before, so I was wondering what is the simplest way to go about this.
Thanks!
Tkinter is not designed to run in a browser. It was possible at one time to run Tk in a browser by using a tcl plugin, but I doubt that plugin works with any modern browsers (the current release is dated 2006), and it won't work with Tkinter since Tkinter depends on python.
Related
I have this python code that I want to make it an app
I've designed it using tkinter which is a built-in GUI labrary for python.
To summarize everything,
I don't want to execute my code in editors but to create an app to handle everything.
Please help
I've tried using kivy to organize my algorithm but it works slow on my laptop
I'm just wondering if there is a way to put a python Tkinter canvas onto a web page with HTML. It's OK if there isn't. If there is not, is there a way to run python code from IDLE with HTML?
Essentially 'no'. Tkinter is Python's interface to the tcl/tk GUI framework. The 'tkinter canvas' is actually the tk Canvas. A web page could only have a tk Canvas if the browser were somehow running tcl/tk.
As for running Python code in a browser, there are some browser add-ins that will allow that. I do not know how good they are not. You should search the web for 'run python in browser' or add a separate question here. It is irrelevant how you edit the python code, whether with IDLE or another editor.
Is there any Python library or framework that provide scheduling of Jobs in windows having GUI. By jobs, I mean some batch files or Python scripts.
An application where edit, create and deletion of jobs are available.
I have tried and looked a lot of questions, and finally mashed up.
Please suggest some library or a way to create one GUI application for the same.
I used Tkinter and PyQt5 .What I really recommend is PyQt5 for many reasons:-
1.Easy syntx
2.More human readable
and lastly there is an application created to ease and save time on designing the app
for PyQt5 which is Qt designer it's going to convert all the look of you application into python codes so all you have to do copy , paste and do the functionality like when clicking a button something happens etc. Highly recommend PyQt
I have the application installed on my windows PC, I want to launch that application using python and select dropdown options and do some other activities in that application.
I was able to launch the application using the os.system command, but I am not able to proceed further.
I want my program to do things like:
* select from a dropdown menu
* click on a button
How can my application control the user interface of another application?
Normally, an application exposes a user interface (UI) for users, and an application programming interface (API) for programming.
A human being uses keyboard and mouse to work with the user interface (UI)
An application uses programming to work with the application programming interface (API)
The UI is designed for humans, and the API is designed for computers.
It is sometimes possible to use programming to control the user interface of another program -- so your program acts as if it were using the keyboard and mouse. This technique is often called "UI automation", and programs that do it are sometimes called "robots".
It's a big topic, and it can be quite complex. It's almost always better to use an API instead if you can: it's faster, simpler, more reliable.
If you do need to use UI automation, there are a few different tools that can help.
You are asking about Python, so here are a few UI automation tools that work with Python:
AutoIT is a standalone product, but you can use Python to script it.
PyWinAuto is designed for use from Python.
Sikuli uses computer vision to find parts of the screen. I believe it comes with a recording tool as well.
Just to repeat: UI automation is weird and hard. If you can possibly use an API instead, your life will be much easier.
You need to install pywinauto package
Try the following code to run the .exe file
from pywinauto import application
app = application.Application()
app.start("Notepad.exe")
here you are:
(with os ^_-)
import os
os.startfile('your exe file address')
I have an application that uses Flash for the GUI and Python for the core logic. This combination is awesome. Unfortunately my current approach only works on Windows, as it uses the wxPython comtypes library to embed the Flash ActiveX player. Every other aspect of the app is platform-agnostic, so I'm thinking there must be some way on Linux to have Python talk to Flash.
The SWF need not require AVM2/AS3, though ideally I could use the most current Flash player available. I am using wxPython (wxWidgets) and would prefer to keep using it. Worst case I could jerry-rig something that loads the SWF in a separate process and talks over a socket connection to the Python, but I see no simple way to have the Flash display inside my application's window rather than a player window with its own menus and decorations.
Any suggestions appreciated. I'm very open to hacking at a solution if there's reason to believe it will work :)
Flash Professional has support to Adobe Air, so you could use it as front-end, usually a flash project can be released as an AIR application without major changes to its code. The communication could be done using Native Process Api (see links bellow). Then you can run it on Mac, Win e Lin.
http://www.kirupa.com/forum/showthread.php?349728-Air2-NativeProcess-launching-Python-scripts.
http://mykola.bilokonsky.net/2010/11/adobe-air-nativeprocess-and-python-introduction/