Use default position for PopupMenu in demo.agw.AUI.AuiFrame

This commit is contained in:
topic2k
2019-10-23 09:24:58 +02:00
parent c6a1bad4c5
commit 2f19c5a0eb

View File

@@ -2355,12 +2355,7 @@ class AuiFrame(wx.Frame):
m4.SetBitmap(bmp)
menuPopup.Append(m4)
# line up our menu with the button
rect = tb.GetToolRect(event.GetId())
pt = tb.ClientToScreen(rect.GetBottomLeft())
pt = self.ScreenToClient(pt)
self.PopupMenu(menuPopup, pt)
self.PopupMenu(menuPopup)
# make sure the button is "un-stuck"
tb.SetToolSticky(event.GetId(), False)