]> git.saurik.com Git - wxWidgets.git/commitdiff
Use top-level parent for the dialog parent
authorRobin Dunn <robin@alldunn.com>
Mon, 28 Jun 2004 19:23:08 +0000 (19:23 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 28 Jun 2004 19:23:08 +0000 (19:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/colourselect.py

index 62eee85e392540c6e3316cdfec4cb90869caa8a5..689e467e679198a5c43658baefa1614ba6f20e8a 100644 (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: