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
Tag: user-interface
Display loading symbol while waiting for a result with plot.ly Dash
In my Dash-based application, a button triggers a long-running computation. Wouldn’t it be nice to display a loading animation while the result is not yet there, and make the button inactive so it is not clicked again before the computation finishes? I am using Bulma for UI design and wanted to use the button is-loading CSS class for that purpose.
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
clicked.connect() will not access the method
I have a seperate script that calls this one… I don’t understand why my button click is not going into the corresponding function. I am quite new at this so if you do know the answer, could you explain it to me so that I can learn it. Answer Remove this line: self.windowWid = QWidget() and change layout = QGridLayout(self.windowWid)
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 Terminal/Text UI (TUI) library [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago. Improve this question How can I make a console GUI (more appropriately called TUI) ? It’s important to note that I will be
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