2020欧洲杯手机版注册

A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [tkinter]

Tkinter is the standard Python interface to the "Tk" graphical user interface toolkit.In Python 3, the name of the module changed from Tkinter to tkinter.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

tkinter:2 windows pop up at the same time

As a beginner, I am not familiar with tkinter and I don't know how to improve the following codes which are supposed to function like this:After running the renamer_v.py file, a window will pop up. ...
0
votes
1answer
11 views

Why do two windows appear when I connect styles?

enter image description hereI have a code like this:from tkinter import Tkimport tkinter.ttk as ttk"""Styles"""style = ttk.Style()style.configure('OrangeButton.TButton', foreground='white', ...
-1
votes
0answers
19 views

Text File Data to show by Tkinter

I have text file in which 6 columns are there any many rows I want to show this text file data through tkinter gui python . Tkinter Gui will be like first 3 rows first date_time will show and next ...
0
votes
1answer
16 views

How to return multiple value from a function to another by tkinter entry box? (ValueError: could not convert string to float: )

I am really new to tkinter and python, and I try to create GUI by using tkinter. The sample is just calculate the multiplication and addition of two number and return, and i am stuck with generating ...
1
vote
2answers
35 views

Tkinter tags on Labels

Using tkinter with Python 3I have a frame which I bound a callback function to when I click the frame, but when I place widgets in the frame they don't respond to the click. So I want to bind them ...
0
votes
0answers
20 views

Where to download tkinter for python 2.7? My target machine has no Internet Connection

I can't find tkinter on pypi or anywhere else. I've read that it comes with python 2.7, but it is not on beaglebone debian. I don't have an Internet connection for it so I need to transfer the ...
0
votes
1answer
18 views

Variable.get() from Optionmenu not returning what I need to query mySQL

forgive me for shoddy coding/description of the problem. I'm new to programming and this is my first question!Anyways, I am building a simple inventory system with tkinter while using mySQL as a ...
0
votes
1answer
21 views

How do I assign bind functions when new fields are created after user clicks a button?

I have a form where a user creates a record of product attributes by clicking a button. Once clicked, four combo boxes, one label, and one entry field are loaded on the form that make up a record....
-1
votes
0answers
17 views

Python _tkinter.TclError: invalid command name “.!entry”

I'm trying to add an else statement to my code, but it always runs the else statement after the input. I understand the why it happens, but when I try to fix the code by adding Intro_Get.destroy(), I ...
-2
votes
0answers
40 views

Python script auto closes

So I have this project I am doing for school and I need one thing. I need it to run when you double click the py file. That was stated by professor. If my python file automatically closed I will get 0%...
0
votes
0answers
14 views

Python tkinter how can I copy information from a Text widget to a Canvas widget?

To put it simple, i want to write stuff in the text widget and then have it copied onto a canvas widget on the same coordinates (in the code below the Text widget size is the same as the canvas one)...
1
vote
1answer
17 views

Is there a way that I can center a grid in tkinter?

My idea is to make a GUI with a grid and I want that the grid it self to be centered in the window.root = Tk()root.state('zoomed')telaInicial = Frame(root)botaoNovoAluno = Button(telaInicial, ...
-3
votes
0answers
12 views

How do I place a button centered on an image in tkinter python 3.0 [closed]

In tkinter, I am working on an app that displays an image that fits the whole window and has buttons on the image. How will I be able to do that? I got this so far. I just want to separate the image ...
0
votes
1answer
19 views

Display a Label from a different object

So here's my code:import tkinter as tkclass Window(tk.Tk): def __init__(self, *args, **kwargs): tk.Tk.__init__(self, *args, **kwargs) self.container = tk.Frame(self) ...
-1
votes
1answer
13 views

Update a tkinter window in the background

I am trying to make a python game, and I'd ideally need to create a simple tkinter GUI, composed of a couple of buttons, and a text input.The format of the game is currently composed of multiple ...

15 30 50 per page