Python GUI

Christopher Browne cbbrowne at news.hex.net
Fri Aug 13 21:24:14 EDT 1999


On 13 Aug 1999 07:15:25 +0100, Michael Hudson <mwh21 at cam.ac.uk> wrote:
>cbbrowne at news.hex.net (Christopher Browne) writes:
>> On 12 Aug 1999 19:43:45 +0200, Christian Egli <christian.egli at alcatel.ch> wrote:
>> >>>>>> "Phil" == Phil Hunt <philh at vision25.demon.co.uk> writes:
>> >>>>>> "Paul" == Paul Prescod <paul at prescod.net> writes:
>> >Paul> Glade is a GUI application that allows you to build a window
>> >Paul> visually.
>> > 
>> >Phil> Okay, but I saw a reference somewhere to Glade having a
>> >Phil> declarative file format that could be converted into code to
>> >Phil> build the GUI. I was mostly talking about the declarative file
>> >Phil> format.
>> >
>> >Maybe you meant the storage format of Glade which is XML which in
>> >turn can be used with Libglade to build the GUI dynamically.
>> 
>> Sounds Really A Lot like CORBA DII...
>
>Not to me. Could you elaborate for the slow of thought?

DII == Dynamic Invocation Interface.

Basic idea is that it allows a CORBA client to dynamically discover
new objects and their interfaces, and connect to them.

Same idea as having a LibGlade client dynamically discover new GTK
widgets and their interfaces, and then connecting to them.

Upside: It's pretty cool, and potentially makes programs more
flexible.

Downside: You have to write the client so that it knows how to
discover and use these new objects.  Suffice it to say that This Can
Get Complex.

>> >Paul> Glade does that too, as long as your "favorite language" is
>> >Paul> C. :)
>> >
>> >Not only. See below
>> ...
>> >AFAIK Libglade does exactly that.
>> 
>> Question: How do you tie events to widgets?
>> 
>> Is it, maybe, perchance, via pointers to C functions???
>
>widget.connect("<signal>",<callback>).
>
>I mean, yes, gtk+ ties events to widgets via C function pointers, but
>the Python wrappers are sufficiently sophisticated that you can use a
>Python function. 

Glad to hear it.

>pygtk rocks. I'm not sure it's as perfectly designed as could be, but
>it's pretty damn cool.
-- 
Non-determinism means never having to say you're wrong.
cbbrowne at ntlug.org- <http://www.hex.net/~cbbrowne/lsf.html>




More information about the Python-list mailing list