Posts by Marcos Lorhan • 103 points
13 posts
-
1
votes1
answer432
viewsA: How to add a Matplotlib chart on Tkinter
I am creating 2 figures, fig1, in which Voce uses to plot the pie style pizza (pie Chart) and f in which Voce uses to work the Figurecanvastkagg. Removing f and using fig1 in Figurecanvastkagg…
-
1
votes1
answer432
viewsQ: How to add a Matplotlib chart on Tkinter
I have a graphic of matplotlib put in format (pizza) and I wanted to take the picture and add it to Tkinter matplotlib.use("Tkagg") DataBaser.cursor.execute(""" SELECT RendaMensal FROM Registro…
-
-1
votes1
answer308
viewsQ: I have a Scrolledtext with Tkinter, and would like a command to fetch words that would be inside it
area = ScrolledText(jan, width=800, height=400) Here I have a Scrolledtext, which is nothing more than a text box with a scrollbar, let’s say I typed enough content inside it and would like to…
-
0
votes0
answers108
viewsQ: how to solve problems with "referenced before assignment"?
from tkinter import * from tkinter import messagebox jan = Tk() jan.title("Pontuacao") jan.geometry("200x200") pontos = 0 a = Label(jan, text="pontos") a.place(x=0,y=0) def aumentar_pontos(): pontos…
-
0
votes1
answer51
viewsQ: How do I hold forever when the <Down> key is pressed and gain +10? (Python3 + Tkinter)
from tkinter import * from tkinter import messagebox jan = Tk() jan.geometry("500x500") Quadrado = Frame(jan,bg="#B0C4DE", width=25, height=25, bd=3,…
-
0
votes2
answers1748
viewsA: Python 3.5.0 ::: Delete a Label in Tkinter
Cara has a way of "deleting " using . place YES simply add a position that is not visible in your window, for example: jan = Tk() jan.geometry("500x400") nome = Label(jan, text="Ganhou")…
-
0
votes2
answers443
viewsQ: How do I take data from an Entry and add it to the Database (sqlite3)
from tkinter import * jan = Tk() jan.title("Dados") jan.geometry("200x200+250+100") label = Label(jan, text="Nome:") label.grid(row=0, column=0) nome = Entry(jan, width=25) nome.grid(row=0,column=1)…
-
1
votes1
answer1024
viewsQ: how do I put a Scrollbar in a python window as if it were a web page, the more content could go down Scrollbar
I wanted that when entering the program window using Tkinter, it would be possible to use a Scrollbar to search for more items in the window so that it does not get its limited height, being able to…
-
3
votes1
answer821
viewsQ: Image overlay in Tkinter
I have a problem trying to overwrite an existing image in Python 3. from tkinter import * jan = Tk() jan.geometry("500x500") jan.configure(background="#f0f0f0") head = PhotoImage(file =…
-
-1
votes2
answers71
viewsQ: Is it possible to manipulate the numbers of a randint?
For example, I wanted the numbers generated by a randint were 350, 400, 450 and 500. You could do that?
python-3.xasked Marcos Lorhan 103 -
-1
votes2
answers101
viewsQ: How to detect if the typed string has more than 6 characters?
How do I detect that the string typed by the user has more than 6 characters for example??? . . . . . .. .
-
0
votes0
answers149
viewsQ: How do I make my music player choose an mp3 file and play it?
I’m having trouble making the program choose the music and play the selected music from tkinter import * from tkinter import messagebox from tkinter.filedialog import askopenfilename from pygame…
-
1
votes1
answer582
viewsQ: How do I pause a song in python?
I can make the program play the music, but the whole window is without function and only comes back to work when the music stops, that is to say creating a def button to pause the button only…