popuptransientwindow

you are true. i tested it and it didnt work, that’s why i said it was redundant

···

On 3/7/07, Andrea Gavana < andrea.gavana@gmail.com> wrote:

On 3/7/07, fatima cabot wrote:

I find this code a bit redundant and doesnt make much sense to me, but

Ithink the solution is:

popup=wx.PopupTransientWindow…
pos=event.GetPosition()
pos=self.terreno.ClientToScreen(pos)
st=wx.StaticText… .
size=st.GetBestSize()

popup.Position(pos,(0,size[1]))
popup.SetSize(st.GetBestSize())
popup.Popup()
event.Skip()

Uhm, you might try to shorten it a bit:

popup = wx.PopupTransientWindow…
pos = self.terreno.ClientToScreen(event.GetPosition())
st = wx.StaticText… .
popup.Position(pos, st.GetBestSize())
popup.Popup()
event.Skip()

But I didn’t test it, so I may have written some non-working code :smiley:

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.virgilio.it/infinity77/


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org