Skip to content

Disabled wx.ListBox in DarkMode is having a FONT issue. #2953

Description

@KennethB86

Operating system: Windows 11
wxPython version & source: pypi source, version 4.3.1
Python version & source: python 3.14.3

Description of the problem:
When a wx.ListBox is created in Darkmode and put to Disabled, the font rendering is off.
See the screenshot as well.

Code Example (click to expand)
# MyApp:
SetAppearance(self.Appearance(2))
# Ctrl
ctrl = wx.ListBox(self.panel, choices=[], style=wx.LB_EXTENDED|wx.LB_OWNERDRAW|wx.LB_SORT, size=(listbox_width,listbox_height))
ctrl = Enable(False)
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions