Move frame to out of display boundary.

Hey

I’m using Ubuntu 12.04 with wxPython 3.0.

I noticed I can drag frame out of display bounds but I can’t use Move or SetPosition to move the frame out of bounds.

It seems every time I tried to do that, the position would be clipped to the lowest position frame can go. Is this an expected behavior?

Is there a flag I need to set to able to move frame out of bounds? I’m trying to create a transparent keyboard that starts from the bottom and out of the boundary of screen,

slowly move it to the middle of screen.

Thanks

Hey

I’m using Ubuntu 12.04 with wxPython 3.0.

I noticed I can drag frame out of display bounds but I can’t use Move or SetPosition to move the frame out of bounds.

It seems every time I tried to do that, the position would be clipped to the lowest position frame can go. Is this an expected behavior?

I don’t know, it would certainly be nice if there was an option to allow this… but it may be something that isn’t available on all platforms, and if that is the case, could be why it was left out of wxPython. I cannot say for sure. Wait for more commentary from other folks.

Is there a flag I need to set to able to move frame out of bounds? I’m trying to create a transparent keyboard that starts from the bottom and out of the boundary of screen,

slowly move it to the middle of screen.

Don’t hold your breath waiting to find out, but in the mean time, checkout if ShowWithEffect (rather than Show) will work for you:

http://wxpython.org/Phoenix/docs/html/Window.html#Window.ShowWithEffect

http://wxpython.org/Phoenix/docs/html/ShowEffect.enumeration.html

On second thought, it looks like the ShowWithEffect method has only been present since wx 2.9.0, and seemingly not on Linux (I encourage you to still try it and make sure, try using the latest wxPython version available):

http://docs.wxwidgets.org/trunk/classwx_window.html#a596b1715edfc7609f352b2e000ecbaec

Note
Currently this function is only implemented in wxMSW and wxOSX (for wxTopLevelWindows only in Carbon version and for any kind of windows in Cocoa) and does the same thing as Show() in the other ports.

···

On Monday, December 1, 2014 3:30:03 PM UTC-8, Kuo Li wrote: