Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How can I lock window position?

JasonChicoJasonChico Posts: 3Member
[b][u]BACKGROUND[/u][/b]
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.

[b][u]MY PROBLEM[/u][/b]
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.

[b][u]MY QUESTION FOR YOU[/u][/b]
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
Sign In or Register to comment.