Skip to content

Commit

Permalink
wxGUI: fix wx.ListItemAttr deprecated warning (OSGeo#3054)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa authored Jun 19, 2023
1 parent 0d6124b commit 2167613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gui/wxpython/iclass/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def OnGetItemAttr(self, item):
text_c = wx.Colour(*ContrastColor(back_c))

# if it is in scope of the method, gui falls, using self solved it
self.l = wx.ListItemAttr()
self.l = wx.ItemAttr()
self.l.SetBackgroundColour(back_c)
self.l.SetTextColour(text_c)
return self.l
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/iscatt/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def OnGetItemAttr(self, item):
text_c = wx.SystemSettings.GetColour(wx.SYS_COLOUR_INACTIVECAPTIONTEXT)

# if it is in scope of the method, gui falls, using self solved it
self.l = wx.ListItemAttr()
self.l = wx.ItemAttr()
self.l.SetBackgroundColour(back_c)
self.l.SetTextColour(text_c)
return self.l
Expand Down

0 comments on commit 2167613

Please sign in to comment.