Skip to content
Discussion options

You must be logged in to vote

There isn't a way to isolate the handle image resize. You could create your own layout for the scale, which is essentially what I did below. I copied and modified the code I use in the style builder. This demo shows a gigantic slider handle.

import ttkbootstrap as ttk
from ttkbootstrap.constants import *


def create_custom_scale_style(style_obj, style_name, handle_size, colorname=DEFAULT):
    """Create a style for the ttk.Scale widget.
    Parameters:
        colorname (str):
            The color label used to style the widget.
    """
    builder = style_obj._get_builder()
    images = builder.create_scale_assets(size=handle_size)
    STYLE = "TScale"

    if any([colorname == DEFAULT, 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrewguy
Comment options

Answer selected by andrewguy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants