Questions tagged as 'tkinter'

1
answer

Add shortcut to a menu in tkinter

I'd like to know how to add a shortcut to a menu item. I already had to search and I saw that it can be done using a special function common to all widgets of the tkinker module, that is the bind function. What I tried to do w...
asked by 19.10.2014 / 17:18
1
answer

Stand-alone Python software (.exe file) for non-python machines with GUI and TkInter

I am developing software using Python 3.6.5 and need to run it on machines that do not have python installed. It contains some libraries for machine learning and access and excel to MS. I've seen some solutions on the internet to convert it to...
asked by 08.11.2018 / 08:33
0
answers

I have a small problem with listbox - in Tkinter

Good morning, I have a question about the listbox in tkinter. My code is working fine, there are only two things wrong and I can not fix it. First that when I click the Delete button, the program deletes only on time, when I close and reop...
asked by 24.12.2018 / 15:56
0
answers

How to reduce the instruction block inserted inside an if conditional structure in python?

Hello, I'm developing a program that calculates and sizes wall-beams. It basically works with security checks (request less than or equal to resistance), when one of these checks is not met, the program will alert the user to the error and then...
asked by 14.08.2018 / 23:15
0
answers

Error: "sqlite3.OperationalError: no such table"

I have the following error:    sqlite3.OperationalError: no such table: product I already checked in my database, the product table is there Code: from tkinter import * from tkinter import ttk import sqlite3 root = Tk() root.geome...
asked by 09.08.2018 / 02:38
0
answers

How do I check a login with sqlite3 + Python3?

from tkinter import * from tkinter import messagebox from random import randint import os import sqlite3 from tkinter import ttk con = sqlite3.connect('BancoDeDadosCadastro.db') cur = con.cursor() cur.execute('CREATE TABLE IF NOT EXISTS BancoDe...
asked by 17.08.2018 / 16:31
0
answers

make a while loop or restart the program in tkinter with a new question

I would like to know how to do when I click the answer button, restart the program with a new account and optimize the code? from tkinter import* from random import randrange janela=Tk() janela.geometry('100x80') janela.resizable(0,0) a=(ran...
asked by 09.06.2018 / 00:25
1
answer

Problem with geometry pack and grid (tkinter)

To tell you the truth these two geometries are very complicated, but unfortunately I need to use this 2 in this project. So come on. First follow the code: from tkinter import* from tkinter.ttk import * class principal: def __init__(s...
asked by 02.06.2018 / 02:10
1
answer

Python: Tkinter. Execute button

Dear friends, good evening! See if you can give me an idea, please! Problem to solve: I created the TKINTER interface for my program. This interface is in a separate file of the code. I would like the 'Rename' button to make the prog...
asked by 24.04.2018 / 00:38
1
answer

I can not close the Tkinter Window

Well I'm doing an application in python using tkinter, I made a login window after the user verification and password I would like to open a system window and close the login window. I'm breaking my head and I can not find the error, if anyone c...
asked by 11.04.2018 / 00:29