Sign in to follow this  
Megaman_22

[Python+Pygame] Moving window around on the screen

Recommended Posts

Megaman_22    100
I'm working on an engine/general GUI type riggie, using python & pygame. I wasn't satisfied with the way pygame integrates with the window manager, so I figured I'd initialize it NOFRAME, and draw my own titlebar. After much frigging around, I'm happy with my contraption, except that I can't drag the window to different locations on the desktop. I've looked all through the documentation, and a quick google search didn't turn up anything, so I figured I might as well ask here. Looking at the SDL docs makes me think that this might be a fruitless search. Is there anyway I can hack this to work?

Share this post


Link to post
Share on other sites
Oluseyi    2103
Not from within PyGame. Your options are to hack PyGame itself (from C), or find a way to use something like wx to house the PyGame surface.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this