#4 Resize capability for viewer.py

closed-accepted
nobody
None
5
2010-03-28
2010-03-27
Alex
No

Here is a patch which enables window resizing and maximizing in viewer.py.

Changes:
- added RESIZABLE flag to pygame display surface
- flags became self.flags; (width, height) became (self.width, self.height)
- handled VIDEORESIZE event, which resizes the window and updates (self.width, self.height)

Discussion

  • Alex

    Alex - 2010-03-27

    Patch for adding resize capability into viewer.py

     
  • Matthias Baas

    Matthias Baas - 2010-03-28

    This is applied now.
    I added one thing: the attributes width, height and flags are now also set in the constructor (they are just set to None). My convention is to initialize all attributes in the constructor (even though they only receive their final values later on). This is so that by looking at the constructor you will see all attributes that the class is using.

     
  • Matthias Baas

    Matthias Baas - 2010-03-28
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks