   Python GUI and struct questions
  Well I'm sure i'm going to see a lot of [google] images but I've got a few questions regarding Python.* Is there an alternative to struct? I'm not necessarily saying I can't or won't use it, but it feel like a bit of a hack, but if its the "best" way to handle binary data in python then so be it, and I'll deal with it.* Regarding GUI programming in Python, how does wxPython match up?I've always liked wxWindows and I thought maybe I'd give wxPython a try if I decide to use Python for my tools.  As i understand it wxPython is its own runtime as opposed to just being a library for Python, is this correct? * Either way, what seems to be the most popular libraries for Python GUI dev?thanks a lot,Dan   
  I am not sure about which widget set is the most popular for python, but wxPython is good. It is very similar to wxWindows and even simplier in some cases. Most of the wxPython is simply wrapped around the c++, but there is some python specific code. You can create special python widgets that you have more control in changing the widgets appearance.....basically wxPython is not here today gone tomorrow. It is a good toolkit for python..I haven't used some of the others enough to make a good comparison though.   ;Quote:Original post by Ademan555* Is there an alternative to struct? Depends on precisely what kind of data you're trying to manipulate. You can have a look at the array module or at numpy. Type codes aren't pretty, but they're pretty much the only way to dynamically build a structure representation.Quote:* Regarding GUI programming in Python, how does wxPython match up?Very well. Quote:As i understand it wxPython is its own runtime as opposed to just being a library for Python, is this correct? wxPython is a front-end for wxWidgets, that's all. I don't really understand what you mean by "is its own runtime". It is a framework that does provide an event loop which controls the flow of your program, if that's what you meant.Quote:* Either way, what seems to be the most popular libraries for Python GUI dev?Tkinter benefits from being in the standard library, but comments on the python mailing lists indicate that, if it had to be done over (e.g. for Python 3.0), they'd pick wxPython instead.   ;  Thanks both of you.As far as the "its own runtime" thing.  I meant that my impression of it was that it wasnt JUST a library for python, but rather a stand alone interpreter for Python code that used wxWidgets.(like java VM vs DLL)if that makes any sensethanks-Dan   ;  Ah. No, it is not. It is a python library that gives you access to wxWidgets. It still runs on whatever python interpreter you happen to be using, assuming you use a build of the library that matches the interpreter version you have.   ;  Thanks Fruny for clarifying.  Well I must say I'm interested then.  It seems like a good way to go for GUI programming.thanks-Dan   ;Quote:Original post by Ademan555As i understand it wxPython is its own runtime as opposed to just being a library for Python, is this correct? On Windows, the WxPython installer installs the WxWidgets runtime as a "side effect" while the PyGTK installer wants an already installed GTK runtime, but it is a superficial difference: both toolkits are Python extensions depending on external, self-contained shared libraries that are available for any application.