On 18 Apr 2001 08:38:23 +1200, Rob Brown-Bayliss wrote:
> > On 20 Mar 2001, Rob Brown-Bayliss wrote:
> > > I have been playing around in Glade and python via libglade, how would
> > > I get the function to return a specifc area of the app widget as it's
> > > play area? For example, If I take the basic gnome app in Glade, drop
> > > a horizontal box with 2 pannels in the middle, how could I get my
> > > modules to use the right pannel as their own space?
> >
> > When creating the box, call the function in your module to create
> > whatever widgets it wants inside the box, such that it can set
> > callbacks for those widgets (presumably to its own code). Simple
> > 'nuff, eh?
>
> Thanks, what I am doing now is:
>
> The right hand box is a notebook without showing the tabs, when I use a
> new module I add a notebook page from module, useing libglade.
>
> setcog = __import__(newcog)
> ModTree = GladeXML(newcog+".glade", newcog)
> cog = ModTree.get_widget(newcog)
> GearBox.add(cog) # GearBox is a notebook widget
> setcog._setup()
>
> In the galde file newcog.glade I have a simple window, the windows first
> child is a container type widget called newcog which I add to my
> notebook widget. the _setup() function will set the calbacks for the
> widgets in each module... I have yet to test this, perhapse this
> afternoon.
>
> My problem now is how do I know if newcog has already been imported and
> save myself from adding a second copy? And, if it has been added how do
> I find which page of the notebook it is on? I can move hapily backwards
> and forwards through the pages.
>
>
> --
>
> Rob Brown-Bayliss
> ---======o======---
> www.ZOOstation.cc
--
Rob Brown-Bayliss
---======o======---
www.ZOOstation.cc
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk