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:
Robin Dunn 2004-06-28 19:23:08 +00:00
parent bc6e28d55a
commit bbc5a00631

View File

@ -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: