I am currently working on a coursework project for school and it is a database system with a user interface using Tkinter, Python and SQLite3.I made this function to close the window, however the following error is being displayed. I have attached a snippet of the code and a photo of the form. Exception in Tkinter callback Traceback (most recent
Tag: tkinter
STR going into terminal instead of GUI text box
I am trying to learn how to make a GUI so I decided to practice making a calculator. I have all of the number buttons and the ‘+’, ‘-‘, ‘*’, ‘/’ buttons working. I got stuck at the decimal button. When ever I press the button in the GUI it goes into my terminal instead of the text box. Here
Start and stop command to break a loop
I’m working on a webscraping code, and the process is quite long. Thus, I would like to start and stop it in a fancy way, with a button using tkinter. But I couldn’t find any solution on the web. The .after() function doesn’t seems to be a good option as I don’t want to restart my loop each time. My
How to fix most recent Label gets cut off Python Tkinter when using scrollbar
So I was making a chat gui for my tcp chat and I wanted to use a scrollbar so you would be able to see the messages no matter how long the messages got. So I was testing somethings and got it to work for the most part. The only problem is that the most recent message after filling the
missing 1 required positional argument: ‘loop’
I am struggling with incorporating threading into my tkinter program. This program is basically a discord bot that you are able to start, restart and other various things through a gui application. I realised that i need to incorporate threading into my tkinter gui in order to be able to use different buttons in the gui as the bot is
Python Tkinter variable not updating in other thread
So I have a python script which accesses a website every minute, reads the page, and pings me if a certain data was placed on the website in that minute. I’m expanding this script to have a menu and a way to switch between different data points. The GUI and the script work well independently. However, the variable current_event_id does
How can I refresh/reinitialize a class with the values gotten from another class?
So the question title pretty much sums it up. I apologise in advance if I have too much information as I don’t know exactly where the problem arises but the issue is in the transition between class StartPage and class PageOne.I basically want to get the text from first_button (I will add more of these later) and grab data from
how do you ‘connect’ this source code with my tkinter python
hi am new to python and i have created a very simple encryption code and a simple gui with tkinter but i cant seem to ‘connect’ them together i tried so hard but i need help right now that is the encryption method and that is the gui Answer use the ‘command’ parameter in the Button widget to set it
How to display image with upload button in and resize it with window resize (Dynamically)with Tkinter python, I need to add upload button
I need to add upload button so that I can upload the picture and display with this class. Everything working but when I am adding the upload button its giving me some error and my code is not wokring. Answer Create the Button widget within the class constructor and bind it with self.loadbackground. Also, you don’t need to recreate the
How to add only a bottom border to input fields in tkinter?
I am making a login software and I want the input fields to have only the bottom border like we have in CSS. Is there any way to do this in tkinter? Answer There are a few ways to do this. Arguably the simplest is to turn off the border, and then use place to add a separator. You can