Python Forum
Resizing the window and how to properly resize everything else? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Game Development (https://python-forum.io/forum-11.html)
+--- Thread: Resizing the window and how to properly resize everything else? (/thread-108.html)



Resizing the window and how to properly resize everything else? - Gengar - Sep-19-2016

Hey, I want to be able to make the window smaller and bigger... and scale the contents of the frame (everything that deals with wxPython and pygame). How would I go on about that?


RE: Resizing the window and how to properly resize everything else? - nilamo - Sep-19-2016

Scale their size, or their position, or both?


RE: Resizing the window and how to properly resize everything else? - Gengar - Sep-19-2016

well, say if I made the window bigger... more would reveal itself... etc etc... the window gets bigger... the whole picture would get bigger... it gets smaller... the window would get smaller...


RE: Resizing the window and how to properly resize everything else? - metulburr - Sep-19-2016

If you mean keeping the aspect ratio as you scale the window in pygame... Mekrie has some nice repos with examples code of doing various tasks liek this
https://github.com/Mekire/pygame-samples/tree/master/resizable


I dont know about WxPython as i dont use it.


RE: Resizing the window and how to properly resize everything else? - Gengar - Sep-20-2016

Ok, seems like my computer vocabulary isn't that good. Aspect ratio etc. Anything I should read about these things?

Hey can you wrap wxPython around pygame?