Use top-level parent for the dialog parent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bc6e28d55a
commit
bbc5a00631
@ -144,7 +144,7 @@ class ColourSelect(wx.BitmapButton):
|
||||
data = wx.ColourData()
|
||||
data.SetChooseFull(True)
|
||||
data.SetColour(self.colour)
|
||||
dlg = wx.ColourDialog(self.GetParent(), data)
|
||||
dlg = wx.ColourDialog(wx.GetTopLevelParent(self), data)
|
||||
changed = dlg.ShowModal() == wx.ID_OK
|
||||
|
||||
if changed:
|
||||
|
Loading…
Reference in New Issue
Block a user