Skip to main content

All Questions

Tagged with
0 votes
0 answers
31 views

StringVar doesn't update the text on a button in Python's TKinter

StringVar doesn't update the text on a button in Python's TKinter. As a matter of fct, no text is being shown. Why? I'm using Spyder 5.5.5. Here's the code: # -*- coding: utf-8 -*- import tkinter as ...
Radar32's user avatar
  • 27
0 votes
1 answer
33 views

How to add scrollable buttons in tkinter python

Currently, I'm using a tkinter canvas to try scroll buttons. I put twenty buttons on the canvas and none of them scrolled like I expected. import tkinter as tk from tkinter import * from tkinter ...
Breadification's user avatar
2 votes
1 answer
70 views

Python Tkinter with OOP. How to define function for changing button attributes?

I am learning Object Oriented Programming for Python using Tkinter. I want to create a Class for each type of widgets (right now considering only Buttons). I am passing the Button class to my main App ...
ranjit more's user avatar
0 votes
0 answers
44 views

Tkinter: widgets are enclosed in white rectangles

My app has a background and various widgets. Unfortunately, these widgets are enclosed in white rectangles. I want these white rectangles to be transparent so that the background image of the app is ...
Marcin B's user avatar
1 vote
1 answer
51 views

Python tkinter | how do I center my button?

As a person who is new to Python I'm currently coding a CPS counter, but I can't seem to center my Click button. Here is what I got so far: from tkinter import * from threading import Timer import ...
fezka's user avatar
  • 11
0 votes
1 answer
37 views

Changes the position from 0 to the left of the screen. I already tried to modify the degrees and the movement of the arrow but I couldn't

I'm starting out in programming and I'm having difficulty creating this graph. I'm trying to place the graph numbers in order of 0, 45, 90, 174, 178, 90 -45 I'm having trouble placing the 0 to be on ...
Moysés Requiao's user avatar
0 votes
1 answer
30 views

closing a loop with the same button and get screenshots to save in a different folder

the pips are here to remind me btw notes are the problems need fixing also i think the title and notes encapsulates my problem but i can help in the comments do you know a better way to make buttons? ...
OLIE's user avatar
  • 1
0 votes
0 answers
11 views

How to display dealt cards using tkinter Library in python [duplicate]

I have been working with the tkinter library to create a basic gui that is able to deal cards out. I am currently having issues when trying to create a button that will pass cards from a deck. When ...
51014's user avatar
  • 23
0 votes
0 answers
26 views

tkinter button image inside a function not working - python

I've been trying to get this to work with no luck so far. I simplified the code to only the relevant pieces. I can display an image button in the main class, but inside a function I cannot get the ...
Deryckere Frederico's user avatar
0 votes
0 answers
22 views

Adding an image to a Tkinter button: why is the button blank? [duplicate]

I have read the previous posts about adding an image, and copied the code, altering the variable names for my own code. I get a blank button. I am showing a canvas where I have plotted some graphics. ...
user3063708's user avatar
0 votes
1 answer
22 views

Python - tkinter - Button - wrong command - what is wrong?

I'm creating a game called NIM in Python stack = heap This was my previous code with fixed amount of stacks (heaps) and everything is working fine class Game: def __init__(self): self....
Роман Анищенко's user avatar
0 votes
0 answers
44 views

Python tkinter How to make a button that calls a function in a class

I'm doing a simple calculator in python and I'm wondering if it is possible to make a button that calls a function in a class. from tkinter import* l1 = [] l2 = [] root = Tk() class przycisk: ...
Hougu niania's user avatar
0 votes
0 answers
50 views

Tkinter Button Widget Error: Expected Integer but Got String 'Nerd'

I'm encountering an error while trying to add a button widget to a Tkinter window in Python. Drawing a window to the screen works fine though. Traceback (most recent call last): File "/home/...
Saif Shahriar's user avatar
0 votes
0 answers
32 views

Deleting the old entry and asking for a new one in while-loop doesn´t work

I have the problem in my program that I can enter a number and it compares it with the given number, but then immediately says that all attempts have been used up. I think that deleting the entry and ...
mueller.05's user avatar
0 votes
0 answers
33 views

Program goes into a continuous loop or does not continue running

The actual goal of the program is for me to guess the number that the program generates. The first thing it should ask me is whether I want to play. Next I have to enter how many attempts I want for ...
mueller.05's user avatar

15 30 50 per page
1
2 3 4 5
103