ttkbootstrap | supercharged theme extension for tkinter | Theme library
kandi X-RAY | ttkbootstrap Summary
kandi X-RAY | ttkbootstrap Summary
A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap. Check out the documentation. 1.0+ is a complete rebuild of the library. If you are using version 0.5 you may run into issues trying to import themes with the themes.json as this has been removed from 1.0. You can now import and save themes directly using the ttkcreator.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Setup the theme
- Create tk style styles from theme registry
- Set the theme to use
- List of available theme names
- Create a round scrollbar style
- Convert hex color to rgb
- Convert rgb to hex
- Convert hd to rgb
- Create value inputs
- Create a TMenubutton style
- Create an outline button
- Creates checkbutton style
- Create a toolbutton style
- Creates an outline toolbutton style
- Create a striped progressbar
- Create scrollbar style
- Create treeview style
- Creates a table view
- Creates a combobox style
- Creates a tProgressbar style
- Creates a tkendar style
- Create a spinbox style
- Create a floodgauge style
- Create the right frame
- Create the scale element
- Create square toggle style
ttkbootstrap Key Features
ttkbootstrap Examples and Code Snippets
Community Discussions
Trending Discussions on ttkbootstrap
QUESTION
My problem is I want to get the value of the date that was selected in the ttk.DateEntry widget. According to this documentation you need to use get_date() Docs
It may be that I am misunderstanding the usage of that but I get the following error
AttributeError: 'DateEntry' object has no attribute 'get_date'
I do use this library for styling ttkboostrap
Here is my code example:
...ANSWER
Answered 2022-Apr-01 at 07:30The document link is about tkcalendar.DateEntry
, however your code uses DateEntry
from ttkbootstrap
module instead of tkcalendar
module.
To get the date from ttkbootstrap.DateEntry
, you need to get the content from the internal Entry
widget using .get()
:
QUESTION
I'm having some troubles with treeview when I try to display hierarchical data. The desirable output would be the following:
But my code is producing the following treeview:
Please find below the relevant part of my code:
...ANSWER
Answered 2021-Aug-13 at 10:39Based on the provided data, I make the following changes:
- use column
#0
as theName
column - use
record[0]
as the value ofparent
option insidemainQuery()
Below are the required changes:
QUESTION
I've been following the ttkbootstrap example for creating a collapsible frame widget. This example almost does what I need, but I've noticed the following odd behaviour:
- If you run the example and do not resize the window, collapsing or expanding a frame changes the size of the entire window.
- If you run the example and resize the window manually, collapsing or expanding a frame no longer changes the window size.
I'd really like to be able to use the example to build my own application, but avoid the behaviour where expanding or collapsing a frame changes the window size. I still need the window itself to be manually resizeable, so disabling window resizing altogether is not an option. Is there any way I can accomplish this?
PS: Below is a slightly modified version of the example code, which can be run without requiring the image assets that the original example uses, if you want to run the example to test it out.
...ANSWER
Answered 2021-May-04 at 15:35I'd really like to ... avoid the behaviour where expanding or collapsing a frame changes the window size.
You can do that by forcing the window to a specific size. Once the geometry of a window has been set -- whether by the user dragging the window or the program explicitly setting it -- it won't resize when the contents of the window resize.
For example, you can force the window to be drawn, ask tkinter for the window size, and then use the geometry
method to be that same size.
For example, try adding this as the last lines in Application.__init__
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ttkbootstrap
You can use ttkbootstrap like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page