guizero
1.6.0 - 2025-01-10
- Add example for how to set box borders
- Add pyproject.toml to enable building with
buildmodule instead ofsetup.py - Change docs deployment to use
mkdocs gh-deployon a branch instead of in the main repo - Add
stepfunctionality to Slider - Add bold, italic, underline and overstrike to text-based widgets
- contributors blindstars, james-pcdr, martinohanlon, lawsie
1.5.1 - 2025-01-10
- Ahem nothing to see here
1.5.0 - 2023-12-03
- Uplifted to Python 3.12
- Resolve issue with Listbox / Combo / ButttonGroup where you couldnt programmatically update the widget unless it was enabled
- Documentation style change due to obsolete mkdocs theme
- Documentation fixes mainly dead links
- Updated installation guidance and instructions, to take into account changes to Raspberry Pi OS and Linux
- Removed Windows MSI installer as they have been depreciated
- contributors martinohanlon, lawsie
1.4.0 - 2023-02-01
- Slider start and end properties can now be at runtime
key_codeis now returned as part of events meaning non-printing characters keys can now be detected- Resolved a bug with Waffle whereby double events were triggered when the waffle was changed as part of the event handler
- Removed use of deprecated Pillow.Image.ANTIALIAS constant
- Various minor docs fixes
- contributors martinohanlon, lawsie
1.3.0 - 2022-01-01
- Added TitleBox widget
- Added cursor_position property to TextBox
- Made wrapping consistent (
word) for multiline TextBox and added awrapproperty - Code tidy up
- Tested with Python 3.10 and added python version classifiers to setup.py
- Minor documentation updates
- contributors martinohanlon, lawsie, kosme - "^
1.2.0 - 2021-05-04
- Added
filenametoselect_filedialog - Added
when_resizedandwhen_double_clickedevents - Removed previously deprecated
App.on_closedmethod - A window icon can be set using the
.iconproperty - Add
select_colorpopup - Documentation updates and fixes
- Added new examples and recipes
- Tests updated to cope with a greater range of operating systems. Tests work on Windows, macOS and Raspberry Pi OS.
- contributors martinohanlon, lawsie, mirelsol, maroph
1.1.1 - 2020-11-27
- PushButton image bug fix for macOS
- Documentation updates regarding how to use tk, particularly for ListBox widget
- Refactored
.descriptionproperty due to issue with TextBox widget - Fix TextBox widget where you cant set the value if its disabled
- Removed
bgcolorfrom App constructor which had previously been deprecated - Resolved issue with
Waffleand being able to click "outside" the waffle - contributors martinohanlon, aajshaw
1.1.0 - 2019-10-25
- Added ability to be able to change the grid of a widget at run time
- Added
hide_texttoTextBoxfor use with passwords - Added open file and folder pop-ups
select_fileandselect_folder - Changes to
Textto better support cascading of text color, font and size - Various documentation updates
- contributors martinohanlon, lawsie
1.0.0 - 2019-07-11
- Previously deprecated methods have now been removed
- Resolved race condition in the
repeat,cancelmethods - Refactored alerts (renamed pop-ups), they can now also be called from
App&Windowobjects - Added
questionpop-up - Created windows MSI installer for guizero
- Deprecated
App.on_closedmethod and replaced withApp.when_closedproperty - contributors martinohanlon, lawsie, MrYsLab, scotty3785
0.6.4 - 2019-05-08)
- Fixed TextBox command to be on key release
- Fix Text not inheriting properties
- Added add_tk_warning when inserting a tk widget into the wrong container
- Update docs
- contributors martinohanlon, hyle01
0.6.3 - 2019-04-18
- ListBox scrollbar bug fix (again)
- Removed pillow requires dependency
- Added pillow as an extra dependency
pip3 install guizero[images] - Installation instructions update
- contributors martinohanlon, lawsie
0.6.2 - 2019-04-05
- Ability to add tk widgets into a guizero app with
.add_tk_widget() - ListBox scrollbar bug fix
- MenuBar background colour bug fix
setup.pychanges to allow dunders to be accessed from guizero module- contributors martinohanlon, lawsie
0.6.1 - 2019-03-08
- New Drawing widget for creating "drawings"
- Added full screen support for
AppandWindow - Doc updates
- Minor bug fixes
- contributors martinohanlon, lawsie
0.6.0 - 2019-02-08
- Refactoring of layout functions
- Enabled
alignfor theautolayout widthandheightcan now be set to"fill"- Modified
setup.pyto restrict install to Python 3 only - Minor bug fixes
- contributors martinohanlon, bennuttal, yeyeto2788, knowledgejunkie, lawsie
0.5.4 - 2018-10-16
- Fixed
Boxto size properly - Added
bordertoBox - Added
widthandheightto widget constructor - Added
resizemethod to all widgets - Minor bug fixes
- contributors martinohanlon
0.5.3 - 2018-07-18
- Various bug fixes
- wrapping multiline
TextBoxdata ButtonGroup,ComboBoxnow allow 0 options at init- Minimum pillow version is now 4.3.0
updatemethod added toAddandWindow- contributors martinohanlon, scotty3785, MrYsLab, bsimmo
0.5.2 - 2018-06-01
- Refactoring of
ButtonGroup, including API breaking change - if no hidden values are specified,ButtonGroup.valuenow returns the text value not a generate string number #178 - A widgets properties
bg,text_color,text_size,font,width,heightcan be restored by to their default by setting them toNone#181 - Slider is now sized properly when orientated vertically #186
ComboandButtonGroupnow supportappend,insert,remove,clearand depreciatedadd_option#180- Refactoring of class hierarchy
- Various bug fixes
- contributors martinohanlon
0.5.1 - 2018-05-14
App,Window,Boxnow support the following properties and will cascade them to widgets within them:bgtext_colortext_sizefontenabled
- Introduced
ListBox - Bug fixes relating to
bgandtext_colorcausing widgets to change colour when selected - Minor bug fixes with
CheckBox,WaffleandCombo - Documentation fixes and updates
- contributors to this release martinohanlon, lawsie, Harlekuin
0.5.0 - 2018-04-10
- v0.5.0 includes significant refactoring of the guizero code base and introduces many new features
- New image functionality introduced when PIL is installed:
- images can be passed as
Tk.PhotoImageorPIL.Imageobjects as well as file paths - more images types are supported
- animated images (gifs) are supported
- images are scaled when the size is changed
- images can be passed as
ButtonGroup-selectedis now optional,enabledproperties now supported,value_textfixed- Fixed multiple
Appbug - Created
Windowclass to support multi-window applications - Added
multilineandscrollbarfunctionality toTextBox - Refactored guizero to introduce a class hierarchy making guizero wide code changes easier to implement
- Added the following events to all widgets, this should be considered experimental in this release:
when_clickedwhen_left_button_pressedwhen_left_button_releasedwhen_right_button_pressedwhen_right_button_releasedwhen_key_pressedwhen_key_releasedwhen_mouse_enterswhen_mouse_leaveswhen_mouse_dragged
- Various minor bug fixes
- Automated tests have been introduced
- contributors to this release martinohanlon, scotty3785, IDF31, drussell1974 - ta very much :)
0.4.5 - 2018-03-04
- colors can now be specified as either
"red","#ffffff", or(red, green, blue) - change
Pictureimagestartup parameter to be optional - updated
PictureandPushButtonerrors and docs to show that PNG and GIF images can be used in Windows & Linux - refactored
Waffleresolving bugs that setting properties didnt change its appearance - changed waffle so you can reference a pixel using
waffle[x,y] - added
text_color,text_sizeandfontproperties toSlider - added
widthandheightproperties to:BoxButtonGroupCheckBoxComboPictureSliderText
- added
widthproperty to:TextBox
- contributors to this release Coal0, martinohanlon, scotty3785 - :)
0.4.4 - 2018-02-12
- made
PushButtoncommandoptional Combocommand functions can now have 0 argumentsWafflecommand functions can now have 0 arguments- refactored command functions and added
update_commandto:ButtonGroupCheckBoxComboPushButtonSliderWaffle
- refactored
text_color,text_sizeandfontproperties and added them to:ButtonGroupComboCheckBoxPushButtonTextTextBox
- refactored
bg(background) and added to:BoxButtonGroupCheckBoxComboPicturePushButtonSliderTextTextBox
- contributors to this release m4ddav3, Coal0, lawsie, martinohanlon - :)
0.4.3 - 2018-01-10
Minor features, bug fixes and internal refactoring
- added
xspan,yspanto grid layout (Credit: penguintutor) - fixed
show()for widgets in a grid layout - added
master,grid,alignandvisibleproperties to widgets - added
layoutproperty to containers - fixed
Waffleheight(Credit: scotty3785) - minor doc updates
- 0.4.2 was never released due to some pypi / wheel problems
0.4.1 - 2017-12-28
Bug fixes and deployment test
- PushButton bug fixes
- added
enabledproperty to widgets which supportEnable/Disable - documentation tidy up
- added build notes to documentation
0.4 - 2017-12-19
Thank you to everyone who has taken time to contribute code, suggest helpful improvements and report their use of the library. I am extremely grateful to the following people who have contributed pull requests since the last version: bcroston, bennuttall, Coal0, martinohanlon and scotty3785
I am also very pleased to announce that martinohanlon has very kindly agreed to maintain guizero whilst I am on maternity leave, beginning December 2017.
General changes:
- All classes rewritten with internal Tk objects rather than extending the Tk object, meaning you can access all Tk functionality as
Object.tk.tkmethod()(Credit for idea: bennuttall) - Improved use of library with tab complete editors (e.g. ipython) – only the guizero properties and methods are listed so the list is shorter and more friendly. (Credit for idea: bennuttall)
- [Bug fix] Grid layout now lays items out properly. Previously the x and y axes were flipped. (Whoops!) This fix will cause apps with a grid layout to look different, but now behave correctly. You may need to update old code as a result of this change.
- All classes now inherit from mixins, adding 9 new common methods usable on most widgets -
after(),cancel(),destroy(),disable(),enable(),focus(),hide(),show(),repeat(), (Credit: Coal0 and martinohanlon) - The new
repeat()method allows you to easily specify a repeated callback to a function, making it extremely easy to perform repetitive actions such as updating the GUI based on readings from a sensor. - Documentation and examples have been improved and updated
App:
- New constructor argument
bgreplaces deprecatedbgcolorargument. If both are specified,bgoverridesbgcolor. set_title()andbgcolor()methods are now deprecated and have been replaced bytitleandbgproperties- New additional properties
widthandheight
ButtonGroup:
get()andset()methods are now deprecated and have been replaced by thevalueproperty- New
value_textproperty to get the text associated with the selected option
CheckBox:
get_text(),get_value()andchange_text()methods are now deprecated and have been replaced by thevalueandtextproperties- New
toggle()method added
Combo:
get()andset()methods are now deprecated and have been replaced by thevalueproperty- [Bug fix]
set_default()now correctly resets the combo back to its originally specified value, whether this was the first option or a specified option
Picture:
set()method is now deprecated and has been replaced by thevalueproperty
PushButton:
set_text()method is now deprecated and has been replaced by thetextproperty- New properties for
text_color,bg,font,text_size,heightandwidth– make your buttons look pretty! - Find out whether a button is pressed (1) or released (0) with the new
valueproperty - New
icon()method to set the icon of a button after it is created toggle_state()method deprecated and renamed totoggle()for consistency
Slider:
- New
valueproperty for getting and setting the value of the slider
Text:
- New constructor arguments
text_colorandbg colorconstructor argument now deprecated and replaced bytext_color. If both are specified,text_coloroverridescolor.get(),set(),color(),font_face()andfont_size()methods are now deprecated, replaced by propertiesvalue,text_color,bg,fontandsize
TextBox:
get()andset()methods now deprecated and replaced byvalueproperty
Waffle:
- All waffles will now have a memory. The
rememberconstructor argument remains for backwards compatibility only and will be removed in a future release. - You can now click on a Waffle, and specify a command to run when the Waffle is clicked on. The function given as the command should take two arguments as it will be passed the x, y coordinates of the pixel that was clicked. (Credit: scotty3785)
- Changed internal implementation of the Waffle so it should now be able to redraw more efficiently. (Credit: scotty3785)