LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   python/glade attach window content in gtk.fixed() (https://www.linuxquestions.org/questions/linux-software-2/python-glade-attach-window-content-in-gtk-fixed-239799/)

a10392 10-07-2004 08:38 AM

python/glade attach window content in gtk.fixed()
 
HI,

I'am starting to program in glade/python.
What i want to do is.

I have 3 windows in glade. The fist one has a menu and a gtk.fixed window. when i select a option from the menu, the gtk.fixed() gets the content of the window 2 or 3.
I dont want to open a new window every time i select a item from the menu.

I'am using glade-2 and python2.2

to import glade file i use

import gtk.glade
grk.glade.XML(FILE.XML,'WINDOW')

Does anyone can send me some source example doing what i want ???

I think this is easy, but i a newbie.

Thanks in advance for your help
Regards
MM

jfabiani 10-07-2004 09:42 PM

You might be better off using wxglade and upgrading your python to at least 2.3.
John

a10392 10-08-2004 06:20 AM

Do i realy have to change to wxglade and python 2.3,

it's not possible to do with glade-2 and python2.2 ???

I think what i want to do is simple, so this version should be able to do it.

Does anyone know how to do it.

Thanks
MM

jfabiani 10-08-2004 09:19 AM

Well the Python issue is important IMO. The next version of Python 2.4 is out for review which will put you two versions behind for a new product. I don't know which distro you are on but it's easy to install for most.

Wxglade is just a lot easier to use. It produces python directly (wxpython code of course) and runs from the get go. Very easy but requires python 2.3 and wxpython so 2.2 wil not work.

I just think changing will make programming much easier.
John


All times are GMT -5. The time now is 03:30 PM.