Questions tagged [guizero]

guizero is a Python 3 library for creating simple GUIs. Works with standard Python tkinter GUI library. Designed to allow new learners to quickly and easily create GUIs for their programs.

64 questions
0
votes
0 answers

Python Guizero -- how to increment 1 on counter variables only after exiting app?

I am having a problem with adding votes or incrementing 1 vote to counter variables only after the app is exited using the X in the top right hand corner of the window. Is there a way to do this either making the variables "counter" [1 through 6]…
0
votes
1 answer

Guizero PushButton with command parameter doesn't wait action

I'm trying to build a menu with buttongroup to let the user choose the function to execute, to be confirmed by pressing a button with pushbutton, but executing the code funzione1 is executed immediately without waiting for the choice. I think the…
0
votes
0 answers

How to slowly turn text to another color?

I want to make my red text slowly turn to green (and later to blue). Of course I was traying to make it by myself. Here's the code where I was traying for start turn slowly color from black to red: from guizero import App, Text from time import…
Gutek
  • 11
  • 3
0
votes
1 answer

For some reason, I get a message saying a grid is not nessecary and will not be used. Anyone know how to use a grid for only one box?

Apparently, one can use different GUIzero layouts for different boxes, yet I am unable to leave my App undefined and use this code for a box: topBox = Box(win, layout="grid") firstNumHead = Text(win, text="First number", grid=[0,0]) firstNum =…
0
votes
1 answer

GUIZERO: I want to use a pushbutton to save what's in a textbox to file. How do I do that?

I'm a super beginner with Python, so please be kind. I am creating an app that should take in user input from text boxes, and then when the user presses the submit button this is saved in a text file. I think the issue is that I'm not quite sure how…
0
votes
1 answer

Writing code that so that when the user clicks on the button a new window will open containg detail from a listbox (not using tkinter)

I am having trouble where I am writing code where I take a csv file and populate it on a listbox, Then I am using another csv file to relate to the item on the first csv. When the user selects a car and pushes the button called "Get Info" under the…
0
votes
1 answer

Guizero on Pycharm will not start

I was starting my coding journey but hit a wall before even starting. When I am trying to run a guizero code from pycharm I am getting this error "ModuleNotFoundError: No module named 'guizero' " But it works fine If i run it via python command…
Khal
  • 1
  • 1
0
votes
2 answers

Using guizero and a text datafile to create GUI

So I'm trying to help a student figure out how to create a simple quiz by reading from a text file with the questions, options, and answers. He wants to use guizero instead of the simple built-in input() and print() functions. I would like him to…
0
votes
1 answer

How do I add guizero widgets to tkinter canvas?

I'm trying to use tkinter canvas with guizero. I've successfully added the canvas to guizero window, but now I need to know how to add guizero widgets to that canvas. My overall goal is to have a scrollable section. Here's my code import tkinter as…
0
votes
1 answer

Guizero textbox focus

I am a newb and I have a small script that uses guizero to create a small app that reads a rfid tag and activates door lock. The problem I am having is, when the power goes off and the raspberry pi reboots. the script launches but I have to manually…
shallnot
  • 1
  • 1
0
votes
1 answer

How do you make a slide show in Guizero/tkinter?

I am trying to make a slide show in python 3 with Guizero. I cant seem to make the next and back button work with time reset. from guizero import * app = App(bg='#121212',title='Guizero - slide show',width=500,height=500) #list of images images =…
PurpleLlama
  • 168
  • 1
  • 2
  • 14
0
votes
1 answer

Python: Inserting TextBox value into SQLite Database

I am trying to extract a TextBox content and insert it into an SQLite database. I am using the guizero module. I've written this python test script from guizero import App, PushButton,TextBox, Text,Box import sqlite3 global x global name def…
ShZnd
  • 69
  • 1
  • 2
  • 9
0
votes
0 answers

Trying to make a can counter on a PI 4 in python, Strugging with code for two sensors running at the same time

So I work in the beverage industry and I decided to try and make a can counter using a Raspberry PI4. It needs to use two industrial sensors on the GPIO that detect the cans. Full Disclosure I have just been googling most code and reading when I get…
0
votes
1 answer

How can I set this GUI in the way I want using Guizero?

I'm using Guizero to make a simple GUI in Python, and I want it to look pretty much like this: But I'm coding and for some reason I'm getting a blank space which is moving my elements. Also, I'm usign align bottom in my bottom boxes but they don't…
0
votes
1 answer

How to use the .place() method from Tkinter on a guizero object like pushbutton

Hello I am trying to use the .place() Tkinter method on a guizero pushbutton object. With Tkinter the code would look like vidbutton = tk.Button(w, text="Video", command = connectgp) vidbutton.place(relheight=0.176, relwidth=0.176, relx=0.02,…