Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CustomTreeCtrl.HasAGWFlag not returning boolean affects HyperTreeList #1049
wxPython 4.0.3 msw
return self._agwStyle & flag
This messes up the TreeListMainWindow draw logic in lib.agw.hypertreelist (line 3105):
draw_row_lines = self.HasAGWFlag(TR_ROW_LINES) if self.IsExposed(exposed_x, exposed_y, _MAX_WIDTH, h + draw_row_lines):
'draw_row_lines' ends up being 1024 (value of TR_ROW_LINES) instead of True when the flag is set.
agwStyle = self.GetAGWWindowStyleFlag() res = (agwStyle & flag and [True] or [False]) return res
But this doesn't get used since the TreeListMainWindow subclasses CustomTreeCtrl.
Not to editorialize, but the line: