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
3
votes
1 answer

How to style and customize tkinter/guizero menu bar?

I am working with Tkinter and guizero and am trying to style the menu bar.I am using Python 3.8.2 Things I am trying to change Remove the border/3D effect on the menu bar and options. Remove the menu bar top padding(the little space above and on…
PurpleLlama
  • 168
  • 1
  • 2
  • 14
2
votes
0 answers

Text in button not increasing

I'm creating a memory quiz app for people with dementia where it asks them about their day and they have to answer the question. A family/friend has to first fill in their memories which gets entered into a database. I'm trying to increase the size…
2
votes
3 answers

Why am I getting a blank window with guizero?

I'm simply trying to run the simplest of programs just to make it work, but I keep getting a window with a black background with nothing in it. I've tried changing the background color but nothing seems to work? from guizero import App, Text,…
2
votes
1 answer

How to have a function called when Enter key is pressed in a guizero application?

How do you call a function when the Enter key is pressed in a python guizero application? For reference I've created a form that takes input from a barcode scanner and on the event of the Enter key being pressed it will insert the input into a…
NicLovin
  • 317
  • 3
  • 20
2
votes
1 answer

How to know who is winner in Tic Tac Toe in python using guizero

I have created a game called Tic Tac Toe. There are 2 players one of them are Xs one of them are Os all you have to do is get your symbol 3 in a row without the other person blocking you. The Gui for the game looks like this: Code: from guizero…
2
votes
1 answer

Textbox not showing up in my game Tic Tac Toe python

I have made a game called Tic Tac Toe it is a 2 player game and it is when you have etheir get 3 Xs or 3 Os in a row or diagonally. Code: from guizero import * empty = ' ' player = "X" def clicked(z): button = buttonlist[int(z)] # Finds out…
1
vote
1 answer

How do you add tool tips to buttons in guizero/tkinter?

I am trying to add tool tips into my Guizero app but I cant seem to combine them correctly. While I'm trying to minimize the amount of libraries I'm using if you can give me something else that works with Guizero that would be great too. from…
PurpleLlama
  • 168
  • 1
  • 2
  • 14
1
vote
1 answer

Automatically resizing a guizero window

I have written a guizero code that creates a new window with different amounts of information on it depending on what is selected. I was just wondering if there is a function to resize the window to fit all of the information. I am currently just…
1
vote
2 answers

How to change colour when I click a button in guizero Python 3?

So I have written this piece of code in python3 guizero to change colour to red when I click the button I created. But whatever I do it's not working! I am not sure what I did wrong but it just won't work (I used Visual Studio Code but it didn't…
1
vote
2 answers

GUIzero: "'int' object is not subscriptable" with variables that are forced to be strings

I am working on a piece of GUIzero code intended to attach the values of a 2D array to a selection of textbox widgets. However, despite the fact that all variables in the widget value equations are forced to be strings, it still is telling me that a…
1
vote
1 answer

Run a function for a set amount of time in guizero without freezing the GUI

I am working on a program in Python with guizero (running on a Raspberry Pi) with witch users can select drinks and identify with an RFID Chip. The transaction is then stored in a mariadb on a remote device. The idea is that users selects a drink,…
Maerty87
  • 11
  • 1
1
vote
1 answer

How to deal with none letter keyboard input errors in python guizero/tkinter?

When I press tab it selects all of the text in the input box unless I set the input box multiline to true but it ends up giving the first post a strange format. I would like tab key to act like it normally does in any other program. I am also…
PurpleLlama
  • 168
  • 1
  • 2
  • 14
1
vote
1 answer

Python guizero: textBox = [textBox]

OK, I been using guizero for a couple of days but I found a problem that has been perplexing me. Here a simplified version of the code. from guizero import App, Text, PushButton, Picture, Drawing, TextBox app = App("Testing") def…
1
vote
3 answers

How to get canvas current size with guiZero

I am aiming for make GUI that changes depending on the canvas size. I need to be able to actively check the window size so i know when to display extras. Using Python 3.8.2 GuiZero
PurpleLlama
  • 168
  • 1
  • 2
  • 14
0
votes
0 answers

Dynamic reference to guizero checkboxes

I have "configuration page" called displayBox3 with 28 checkboxes (checkbox1 - checkbox2 etc) and 28 sliders (same principal). When checkbox value is "1" slider next to it becomes visible, when it is "0" it becomes invisible. You can check up to 5…
Aro Vish
  • 1
  • 1
1
2 3 4 5