Questions tagged as 'tkinter'

1
answer

Button Bind in Tkinter.ttk TreeView in another Class

Problem How to create a button bind class in ttk.Treeview? Example Code When programming the main class, it defines the TreeView and then creates another class that defines bindings and events. It is not possible to create these binding...
asked by 16.07.2018 / 14:18
1
answer

Change colors in program using tkinter

Hello, I need to create a function or maybe two to change the background color of the main window without interfering with subsequent events. I wanted to add in the menu> Environment: Light color pattern; Night: dark color, and I want to bind...
asked by 19.01.2018 / 19:57
1
answer

Shortcut by the initial letter OptionMenu in TKinter in Python

I have an OptionMenu in TKinter in Python which is a big list, when I press the letter G for example it does not direct me to the elements with the letter G and also does not allow the use of pageUp and pageDown. Is there a way to make it work l...
asked by 09.01.2018 / 21:26
1
answer

Program closing immediately after opening (Post compiled)

I'm starting to study Tkinter and compiling, and I have a basic notion of Python, and I'm having some problems. Here is an example of a basic program that, after compiling, the executable just opens a cmd and closes, without any kind of response...
asked by 14.10.2017 / 01:12
1
answer

Button does not call function correctly

from tkinter import * class Application: def __init__(self, master=None): self.inicio = Frame(master) self.inicio.pack() self.msg = Label(self.inicio, text="Deseja exprimentar a versao input?") self...
asked by 07.06.2017 / 21:43
1
answer

How do I pause a song in python?

I can make the program play the music, but the whole window is not functional and only works again when the music stops, ie creating a button with def to pause the button only becomes "clickable" when the whole song stop. from tkinter import *...
asked by 17.05.2018 / 11:43
1
answer

Problems with Frames in Python

I'm doing a college job, and I'm having a hard time messing with Frames , more precisely I need to build the graph below. In the code, you walk through it from EAST, WEST, NORTH and SOUTH commands, but for example when I am at 3 and...
asked by 12.09.2016 / 02:47
1
answer

Custom window different from the default in python

Hi, I would like a Python window example, other than the default one, how do I do this ??? This is my code: from tkinter import = root = Tk() theLabel = Label(root, text="This is too easy") theLabel.pack() root.mainloop()     
asked by 16.02.2016 / 09:18
1
answer

How to clean the screen in TkInter?

Is there a practical way to "clean" a screen, giving destroy() to all widgets at a time, without having to do this one-by-one?     
asked by 05.08.2015 / 16:15
1
answer

How to remove a line from a text file

Hello. I am creating a program that opens, saves or deletes links. However, although I can remove the selected item from the list of links, I can not delete the line from the file that corresponds to the selected item. I researched SOEN and foun...
asked by 30.03.2015 / 01:58