Python

Moderators: None (Apply to moderate this forum)
Number of threads: 474
Number of posts: 1166

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Can I lock pygame window position Posted by JasonChico on 2 Nov 2012 at 11:47 AM
BACKGROUND
I am using python for a user interface with a remote controlled vehicle through a network socket. The system works great except for one thing. If I try to move the window it crashes my program. I know exactly what is causing the problem too. When I verify the socket connection I send an iterated variable in each packet of data that I send. The receiving program checks the number to verify it has changed.

MY PROBLEM
It appears that the python program is blocked while the window is being moved, which causes the vehicles program to timeout and terminate the socket. I am going to modify the vehicles control code to handle the timeout without killing the program.

MY QUESTION FOR YOU
I would also like to configure the window to open in a specific area of the screen AND I would like to lock it into place. I found a RESIZABLE flag but I couldn't get it to work for some reason and I'm not sure that will fix my problem. I am running python 2.6.5 on a windows 7 machine.

Any help would be appreciated!
Jason



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.