I'm reading a C-based tutorial to learn using Glade2, but I still have a problem.
When I try to get the GnomeAppBar widget from the XML tree what the get_widget method
returns is:


<gtk.HBox object (GnomeAppBar) at 0x40c12464>

and when I try to use push() or set_status() method to put text into the app bar
it raises an error since it doesn't find such methods.


What I'm doing wrong? The HBox obviously doesn't have those methods but what if want to use GnomeAppBar widget with
Python?


Here is what I do:

self.status_bar = self.mainTree.get_widget("appbar")

where appbar in the .glade file is:

 <child internal-child="appbar">
    <widget class="GnomeAppBar" id="appbar">
      <property name="visible">True</property>
      <property name="has_progress">False</property>
      <property name="has_status">True</property>
    </widget>
    <packing>
      <property name="padding">0</property>
      <property name="expand">True</property>
      <property name="fill">True</property>
    </packing>
  </child>

Thanks in advance

ps. pygtk and pygnome are installed correctly

--
Lawrence "Rhymes" Oluyede
http://loluyede.blogspot.com
[EMAIL PROTECTED]

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to