Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Pygame embedded in wxPython 1.5

    Download button

    No screenshots available
    Downloads: 270  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Barker | More programs
    Freeware / FREE
    July 21st, 2010, 13:59 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Pygame embedded in wxPython description

    A simple test of embedding PyGame in a wxPython frame

    Pygame embedded in wxPython is a simple test of embedding PyGame in a wxPython frame.

    Developer comments

    I've been looking into getting wxPython working with Pygame for a while now, as one of my future projects will involve a fairly complicated interface which would be far too difficult to implement using Pygame alone. Unfortunately this was easier said than done as there appears to be just one example on combining the two, and it's far from perfect - it doesn't show how you would have Pygame running constantly (just how to play a video), and closing the window throws several errors.

    So, after a lot of faffing around with messy code and duelling with screens of error messages, I've managed to get this basic demo working. It's not entirely finished yet as there's no real event handling involved (I haven't decided whether it would be best to let wx handle all events or to try and get Pygame to process the ones occurring within its window), but I hope it'll make the process of combining Pygame and wxPython a bit easier. Any comments are welcome, and give me a shout if any problems crop up.


    Product's homepage

    Requirements:

    · Python
    · pygame

    What's New in This Release: [ read full changelog ]

    · This version is now fully cross-platform, thanks to a patch by randomeyes which makes Pygame draw to a surface and then pass it to wx as an image rather than initialising an SDL display. This approach also makes it possible to have multiple Pygame displays running at once, as shown in the demo.

      


    TAGS:

    embedded PyGame | wxPython frame | PyGame | embedded | wxPython

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM