From: Pete S. <pe...@sh...> - 2000-09-07 06:47:48
|
> I'd like to poll the list regarding the direction we should take for > integrating a gui with pySDL. I can see a few options: i've come to looking at this from time to time. currently, it seems all the SDL GUI's have moved to C++. to me this makes them a bit less desirable. i've seen the Qt announcement as well, and it could provide an interesting path, but i'm afraid for the win32 bindings, since Qt for windows is commercial only. i've written several "image-based-guis" in C/C++ before, and i think it wouldn't be too far out there to try to do our own python versions. as i see it, the widgets would be extremely simple, (ie, a button widget would take several surfaces representing the various states (rest,hover,push,disable) and either call an overriden method for that widget or potentially send a custom user SDL event message. i wouldn't be afraid of trying to create our own. it's true that there are several SDL libraries out there, but like you mentioned, they aren't quite complete themselves, and the C++ makes wrapping a little more work (plus we end up locked down to a C++ style) as i've done a couple UI things before, the two hardest widgets will be a text entering field and a scrolling list box. other than that, most game UI's just need pushbuttons, checkboxes and a menu-type control to me, the most important thing would be for the program to have a lot of control over the UI. some of the SDL UI lib's i've looked seem to want complete control over the SDL queue and screen surface. i'd be looking for something completely opposite. well, i'm off to bed for now, but i'm sure discussion will follow |