self.notebook.connect('switch-page', self.on_notebook_switch)
def on_notebook_switch(self, notebook, page_ptr, page_num, data=None):
page = self.notebook.get_nth_page(page_num)
___
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/
I'm not sure that I totally grok what you are trying to do, so forgive me if
this is not helpful. But, you can use the adjustment's values to remember
its position (or at least get it close). For an adjustment, adj, you have
the following: adj.value (current value), adj.lower (lowest value),
adj.
>Two simple questions:
>1) There's a way to set the theme that an app will use, without
>setting it globally or for the user? Like, just that app will use a
>different theme...
>2) Using Python or py2exe to generate a standalone executable requires
>the installation of the gtk runtime for win32,
Did you find the bug in my code?
tab_label_box = gtk.EventBox()
tab_label = gtk.Label("Some label here")
tab_label_box.add(tab_label)
tab_label_box.connect('event', on_tab_click, your_page_widget)
notebook.append_page(your_page_widget, tab_label_box)
def on_tab_click(self, widget, event, child):
>I'm trying to produce a menu effect in PyGTK similar to the Mozilla tab
bar,
>where a right-click on the tab produces a popup menu to perform various
>actions on the tabs (and/or contents thereof). I can get most of the way
>(sort of) with a button-press-event handler, but there's a couple of thi
Does anybody know how to get the rgb values from a gtk.gdk.GC?
Attempting to access the values returns garbage, as evidenced by this
example:
Python 2.4 (#1, Mar 9 2005, 09:57:26) [C] on irix6
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
>>> pygtk.requir
I am trying to implement a custom cell renderer by subclassing
gtk.GenericCellRenderer. The on_activate and on_start_editing methods of
gtk.GenericCellRenderer are never called, although on_get_size and on_render
work fine. Is there something I am missing? Do these functions work?