I am making blackjack in tkinter and instead of placing buttons over the existing buttons i want to toggle them when, say a new game. Answer There are many ways of doing this. One option (I think he simplest one) is to get your buttons in a frame that you can pack and unpack using pack and packing_forget. In this
Tag: user-interface
I want to create a back button in a tkinter program to recreate a filled form. How do I reopen a withdrawn root window?
Is there a way I can reopen a withdrawn window? I know it is impossible with the destroy function, but I would imagine it would be possible to do so after using the the withdraw function. I created a root1 loop and a root2 loop which opens after the root1 is closed. I have a back button on the second
How to draw lines between widgets in Tkinter?
I have written a script that takes in a file of the format Where each line in the list represents a ‘parent’ node and its list of ‘child’ nodes. So far I have written a script such that these nodes are printed out like a tree, and now I want to try to draw lines/arrows between these nodes. My current
How could I use and manipulate float numbers in PyPanel using textbox widgets instead of sliders?
The Problem: I’m trying to get a float number user input indicator box like this which I designed on LabView in Python using PyPanel to eventually make a dashboard with multiple similar boxes (etc.). Background: I’m trying to make a user friendly dashboard using PyPanel. I am new to dashboards but have some experience in running calculations and modelling in
KivyMD Hot Reload
KivyMD Hot Reload May anybody explain every single thing to do a (hot reload) method in KivyMD? I have been watching a lot of videos, but nothing working for me. There’s no specific error to solve it. Answer I had trouble getting it started too at first… I figured it out by watching kivymd’s youtube videos at .25 speed lol…
PyQt6 Implementing copy-paste functionality across tabs in same window
I am trying to create a tableWidget in PyQt that has copy-paste functionality and the ability to create new tabs. My table is loaded with a initialized sheet but gives the user the ability to create new tabs with new qTableWidgets which I handled using a for loop to create and initialize the widget everytime a new tab is created
How do i resize this labelframe in tkinter?
So I tried to make this labelframe wider by using the basic width and width option. Here’s my given minimal code. minimalized preview: used in application: i want to get this labelframe little bit bigger and make the inside centered, But i had no knowledge to do so, Any help will apreciated! Answer It seems like you just want to
PySide6 TypeError when trying to open window for second time
I have two classes in PySide6. One is the main window and the second one is a widgetWindow. The main window is opening the widgetWindow with this function: The ConnectModbusWindow Class looks like this: I have no problem opening the ConnectModbusWindow for the first time. But when I try it for the second time i get the following error: TypeError:
Search the data on the text file and Printing in GUI with Tkinter
I am writing a python program to search the data on the text file in GUI The search function normally gives the result (in CLI). I want to use it with Tkinter, but when I pull the input with the Tkinter Entry function, my search function does not work. Whatever I write, it outputs the data in the entire text
Kivy RecycleView of Labels without clipping text or huge spaces between
How can I make a RecycleView in a Kivy python app display all its labels without truncating the text contents of the label nor adding huge spaces in-between the labels? I’m trying to display a very large amount of text in a Kivy (5+ MB) without causing it to lock-up. I think objectively the best solution here is to use