I’ve been working with Tkinter and I’m trying to get different columns from different tables in my Treeview, I’m using SQLite as database, in my first table called registers i got different columns idcard, name, surname, cellphone, address, email, etc in my second table named attendance I use to store my entries attendances by ID number I mean I got
Tag: tkinter
Googletrans Error- The handshake operation timed out
When I try to translate text using the googletrans module, I get an error: Here’s my code: My code is very simple and I can’t figure out what’s wrong with it. I tried changing the network connection, but it made no difference. Is there any way to fix this problem? It would be great if anyone could help me out.
Creating a timer with tkinter
I am creating a GUI that needs to have timer starting from 0 and counting up every second until it reaches a limit This is the code I have right now Right now this is increasing the score each second but it does not open the GUI until the score reaches the limit. How can I make it so the
How to make tkinter’s GUI components dynamic?
I am making a tkinter application for Windows, and I want to make the widget placements dynamic. Like in this picture, the Label (which is acting like a background image holder), is covering the Y-axis, but when I maximize the window, like here, the photo does not cover the whole Y-axis. How to fix this, or is there a way
If I created widgets in one function, how can I access them in another function using Python Tkinter?
this is my first project using Tkinter so please excuse me if the question is very simple to solve. Depending on what option the user chooses from a dropdown, I call a function that creates and places certain widgets (e.g. an entry) on a frame. Then, when another button is pushed I want to access the text inside this entry.
Tkinter window menu root issue
So i’m creating a chat bot inside of a tkinter gui but keep getting an error message when creating the main menu and sub menu. Any help is appreciated. Here’s the code: The error I’m getting is: main_menu=Menu(root) NameError:’Menu’ is not defined Answer Your import is import tkinter as tk. So you need to suffix every item imported from the
Tkinter output to GUI textbox
new to GUI creation with python, I have the following code, how can I make the print command appear on the GUI not the command line? I’m wanting to show the print in the GUI as a text box or some kind of output window so the process can be shown. Answer You can add a label for output underneath
Check if the browser opened with Selenium is still running (Python)
I want to check if a browser opened with Selenium is still open. I would need this check for closing a program. If the browser is not open, then the GUI should be destroyed without a message (tk.messagebox) coming. But if the browser is open, then the message should come as soon as the function is activated. Here is the
Calling tk.Tk() once but unexpectedly get two windows?
I am using python 3.8.5 and tkinter 8.6. I am learning to use tkinter. I was trying to make a simple form but for some reason I get two windows when I run my code. One of these windows has everything I am expecting with all the details I expect, but then there is a second unexepected uncallwed window with
How to make button using canvas in toplevel() Tkinter
I’m trying to make a button using canvas.create_window in toplevel() in Tkinter. Button is used to go back to main window. First “Start” button is displayed but second “Back” button is not. Code below. Answer The problem is the ordering of creation of canvas_two and button_back. You need to create the Canvas first and then put the Button on top