Skip to content

how to change the style of a CTKwidget #2367

Answered by rigvedmaanas
zorrolaotse asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @zorrolaotse,

It is not possible to configure the style of the dropdown arrow. The dropdown arrow is created by the draw engine (canvas).

requires_recoloring_2 = self.draw_engine.draw_dropdown_arrow(self._apply_widget_scaling(self._current_width - (self._current_height / 2)),  self._apply_widget_scaling(self._current_height / 2), self._apply_widget_scaling(self._current_height / 3))

The above code in the ctk_combobox.py draws the dropdown arrow.

The dropdown arrow color is linked to the font color, so changing the font color will also change the arrow color. However, you can independently change the color of the dropdown. But it's not recommended since it might change again back to the…

Replies: 2 comments 2 replies

Comment options

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

Comment options

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

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