Category "tkinter"

When designing a desktop app to be resizable, are there any hidden drawbacks to using two sequential Tk instances?

In order to ensure that my program will be compatible with any screen size, I first have a very small 'setup' window open when the program is launched, which wi

Game of the nim, minimax, game tree, data structure

There are 3 piles (1 pile - 7 matches, 2 pile - 5 matches, 3 pile - 3 matches) you can take any number of matches, but only from one pile, the

Generator is limiting

It runs, the TK design is fine but the generated code is limited to one type. What it currently does when it runs is pops up a window with (copy and Generate) b

Why does Tkinter image not show up if created in a function?

This code works: import tkinter root = tkinter.Tk() canvas = tkinter.Canvas(root) canvas.grid(row = 0, column = 0) photo = tkinter.PhotoImage(file = './test.g

labelled image object doesn't exist

I get the pictures from the wikipedia in a class and add them to the dict, when I want to return it and add the result to the label image, I get an error import

dateEntry to only extract the year from user input instead of daymonthyear? In Python

I am creating a GUI using tkinter in python and I want to print the date of what the user had selected using dateEntry. Here is what my code looks like: import

I want to update my SQLite3 database fields in Python tkinter and I'm getting errors

I'm trying to update the firstname field in my SQLite3 database, I tried using exception to get this error but couldn't still fix it. This is the code: conne =

How to avoid TclError if I want to update the results obtained from entries instantly?

I want to add two numbers and add them and update the result instantly without using a button. I have written this code using after() to do that. from tkinter i

How do I make two seperate stopwatches controlled by two different stop and start buttons in tkinter gui. My computer wont let me

I am trying to make a timesheet where every employee times in in the morning and times out at the end of the day. It is going well so far but, I the Why is the

After wait_variable(), text won't change

I am doing a quiz game and after I want to pass a page and load new question and options and the options won't change. I am using the wait_variable() method and

Why does my tkinter messagebox not show up in my pygame window?

I coded a snake game and whenever you hit your own body, a message box should show up asking u to play again. However, when I do hit the body, my python pygame

Tkinter FileMenu....not working (no error code)

I am using the following code but cant seem to get a help-menu in the actual window. Can you see anything in terms of menu when you run the code ? I have tried

ValueError: Coordinate 'right' is less than 'left'

while cropping an image with pillow/PIL, i got the following Error: ValueError: Coordinate 'right' is less than 'left' I am not able to resolve why cropping l

How can I insert a data from my table to a combobox read-only?

This is a school activity, here is the complete code. I want to insert data from my table value to Combobox read-only. I also can't clear the text from the two

How do I delete trailing objects drawn in tkinter?

My goal is to allow you to make a rectangle on your screen similar to using a rectangle or selection tool in paint. I've got it to mostly work but when you make

inserting line of code in the same module according to user input

I'm trying to insert new lines of codes in the same running module every time the user input something. I tried with open function but this function in exe prog

Getting the current selected tab name of ttk notebook in tkinter? - python

I'm creating a GUI that shows different plot types in different tabs, so I created this helping function and I'm trying to figure out how to get the current tab

cv2.error: OpenCV(4.5.2) .error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

import cv2 #for image processing import easygui #to open the filebox import numpy as np #to store image import imageio #to read image stored at particular path

how to disable a date cell in tkcalendar?

# Import Required Library from tkinter import * from tkcalendar import Calendar from datetime import date # Create Object root = Tk() # Set geometry root.geom

Run generator when button is clicked

I want to create a Button to generate a password with tkinter but when the script is running, the password is already generated and the button doesn't work. Her