Skip to content
Advertisement

Tag: user-interface

How to stop the location of one grid element from changing due to the update of the content of another grid element in python tkinter?

I have written code for a small python tkinter application which goes as follows As soon as button_1 is clicked and the label_directory gets updated with the string for directory, the position of button_1 gets pushed towards the right and goes outside the application window. How can I stop this from happening? Answer The problem is that when you are

Could not import “D”: FLASK_APP

I am new to Flask. I wrote this basic code and save it in hello.py in my D:Cat_vs_Dogscripts folder. Then in command prompt, I wrote the following commands. I am getting this error. What should I do…? Answer Flask v1.1.x https://flask.palletsprojects.com/en/1.1.x/cli/#application-discovery The above documentation link describes: The flask command is installed by Flask, not your application; it must be told

Prevent Kivy leaving debug messages

I have a simple a Kivy interface that also uses the terminal. Example code: The problem is that whenever I start the script I get this: I have found that this is Kivy’s automatic debugging messages. How do I prevent them (or at least hide so that I can use the terminal)? Answer As shown in the docs, you should

Qt Framework, PyQt5 and AttributeError: ‘MyApp’ object has no attribute ‘myAttribute’

Last week I started to learn Python and I developed some command line apps. Now I would like to develop apps with GUI. I searched in internet and I found a project that fits my needs: Qt Project (http://qt-project.org) and PyQt (http://www.riverbankcomputing.com/software/pyqt/intro). I installed Qt 5.3.2 Open Source, SIP 4.16.4, PyQt5 5.3.2 on Mac OS X 10.10 and python 2.7.6.

Is there a Tkinter/ttk style reference?

With ttk one can produce code like the following: Is there a list of the different options (e.g. font, foreground, padding) and the values (e.g. helvetica 24, red, 10) associated with each of them? I’ve been searching online and have yet to find such a reference. Also, is there a css-like thing we can use to style a TKinter GUI?

Python code to automate desktop activities in windows

I want to automate desktop activities in Windows environment using Python. How it can be done? Some examples will also be helpful. By desktop activities, I mean actions such as taking control over mouse and keyboard, access active windows properties, double-click on an icon on the desktop, minimize and maximize windows, enter data to an input popup window through keyboard,

Which Python user interface library can I use for 2D games? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 2 years ago. Improve this question I want to create a 2D game on Python with heavy

Advertisement