X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a57d56d66294799d6d36e64fa7aed6ff42a4d1e9..c9468a241baaa09bbc82eb45da40a1d15c630f4d:/wxPython/demo/wxPopupWindow.py diff --git a/wxPython/demo/wxPopupWindow.py b/wxPython/demo/wxPopupWindow.py index d8c3320966..5f6477804e 100644 --- a/wxPython/demo/wxPopupWindow.py +++ b/wxPython/demo/wxPopupWindow.py @@ -34,10 +34,7 @@ class TestPopup(wxPopupWindow): def OnMouseLeftDown(self, evt): self.ldPos = evt.GetEventObject().ClientToScreen(evt.GetPosition()) - if wxPlatform == "__WXMSW__": # this is weird... - self.wPos = self.GetParent().ClientToScreen(self.GetPosition()) - else: - self.wPos = self.GetPosition() + self.wPos = self.GetPosition() self.CaptureMouse() def OnMouseMotion(self, evt): @@ -73,10 +70,6 @@ class TestTransientPopup(wxPopupTransientWindow): sz = st.GetBestSize() panel.SetSize( (sz.width+20, sz.height+20) ) self.SetSize(panel.GetSize()) -## self.SetBackgroundColour("#FFB6C1") -## b = wxButton(self, -1, "this is a Button", (10,10)) -## sz = b.GetBestSize() -## self.SetSize( (sz.width+20, sz.height+20) ) def ProcessLeftDown(self, evt):