Tkinter standardised approach#203
Conversation
set all sub windows to inherit as type defaultroot, set all widgets to be frame object, with a parent frame to be packed into (expected default root content frame)
changes to mpl renderering and small tcl tweaks
…import of mpl agg backend
unsure about label
Python_Engine/Python/src/python_toolkit/bhom_tkinter/widgets/button.py
Outdated
Show resolved
Hide resolved
Python_Engine/Python/src/python_toolkit/bhom_tkinter/widgets/_widgets_base.py
Outdated
Show resolved
Hide resolved
Tom-Kingstone
left a comment
There was a problem hiding this comment.
All is good after changes, tested the windows and widgets which look good and appear to function as expected.
|
@BHoMBot check required |
|
@Tom-Kingstone to confirm, the following actions are now queued:
|
|
@BHoMBot check copyright-compliance |
|
@Tom-Kingstone to confirm, the following actions are now queued:
|
|
@BHoMBot check ready-to-merge |
|
@Tom-Kingstone to confirm, the following actions are now queued:
|
Tom-Kingstone
left a comment
There was a problem hiding this comment.
Approved as before, I am not the decider on colour though so ask @jamesramsden-bh
|
@BHoMBot check required |
|
@jamesramsden-bh to confirm, the following actions are now queued:
|
jamesramsden-bh
left a comment
There was a problem hiding this comment.
Have revised and discussed some styling structure with Felix, happy to merge
|
@BHoMBot check ready-to-merge |
|
@Felix-Mallinder to confirm, the following actions are now queued:
|
|
@BHoMBot check copyright-compliance |
|
@jamesramsden-bh to confirm, the following actions are now queued:
|
NOTE: Depends on
Issues addressed by this PR
Closes #202
Set up of BHoM standard approach for tkinter UIs
Test files
Can test by running any of the windows or widget objects - each has an example usage method in the file
Test script added to the test folder
Changelog
python_toolkit.bhom_tkinterfor a modular approach to tkinter usage in dependant bhom toolkits.BHoMBaseWindowhas been established as a base object for all tkinter UI tools to inherit from, this handles base attributes such as styling.bhom_tkinter.windowscontains a series of pre-produced window objects, for direct use, including loading windows, warning windows etc.bhom_tkinter.widgetsincludes a series of widgets to be used when building up a UI. these widgets inherit fromBHoMBaseWidgetfor handling of get, set, packing & build protocols.tclsheets have been set for bhom styling, in dark and light mode. widgets use bhom logos and iconsAdditional comments