On Thu, 4 Nov 1999, Hassan Aurag wrote:
> I just wanted to know if there are any plans to make a python mode for
> glade, that would create a source directory instead of the present
> runtime thing.
I much prefer the libglade approach. Since Jim wrote both, likely that's
the way it'll go.
> I am the kind of guy that doesn't really understand glade, but would
> like to use it to make windows, then I'd code in the callbacks signals
> etc.. using pygnome or pygtk.
You can do that with libglade. I'll paste in a short example of the glade
code from a project I worked on last night (part of HellDesk's gnome
implementation):
class hdPersonGladeView:
def __init__(self, widgets):
self.widgets = widgets
self.listview = widgets.get_widget('listperson')
self.recordview = widgets.get_widget('editperson')
self.clist = widgets.get_widget('thelist')
self.recordList = ''
self.currRecord = ''
def DisplayList(self, recordList):
a = recordList[0]
for i in xrange(0, len(recordList)):
a = recordList[i]
b = a.toStrArray()
self.clist.append(b)
This was invoked from a main program that called:
self.widgets = libglade.GladeXML('helldesk.glade')
self.persView = hdPersonGladeView.hdPersonGladeView(self.widgets)
The data in the record list came from Gadfly.
> For now however, I would like to have an example of how to use pyglade
> to actually make a glade built app work.
>
> An .glade file with a script that would make this run would be fine.
I understand. We DO need more examples. :)
--
_Deirdre * http://www.linuxcabal.net * http://www.deirdre.net
"Mars has been a tough target" -- Peter G. Neumann, Risks Digest Moderator
"That's because the Martians keep shooting things down." -- Harlan Rosenthal
<[EMAIL PROTECTED]>, retorting in Risks Digest 20.60
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]