Re: A couple of new tab related extensions



Forgot to CC the list...

fre, 23 06 2006 kl. 14:17 -0700, skrev Adam Hooper:
> There are in fact a few example extensions which ship with the
> epiphany-extensions source code; they may come in handy. After that, IMO
> the best tool is the Python Console, which is basically a way to get
> access to Python's dir() builtin.
> 
> I agree that a tutorial would be handy. I wrote a miniscule tutorial on
> using the Python Console a long time ago and never found an appropriate
> place to host it. It's not linked to from anywhere, unfortunately. Here
> it is: <http://adamhooper.com/epiphany-extensions/python-console.xhtml>.
> (This is better than nothing, but of course a full-featured tutorial
> would be great.)

The built-in Python function filter() is also very useful:
>>> import gtk
>>> gtkwin_dir = dir(gtk.Window)
>>> filter(lambda x: x not in gtkwin_dir, dir(window))
['_oocb_tab_ui_id', '_python_console', '_python_console_window_data',
'_ses_menu_entry_data', '_utc_last_tab', '_utc_menu_entry_data',
'activate_location', 'add_tab', 'get_active_embed', 'get_active_tab',
'get_context_event', 'get_find_toolbar', 'get_is_popup',
'get_is_print_preview', 'get_notebook', 'get_statusbar', 'get_tabs',
'get_toolbar', 'get_ui_manager', 'jump_to_tab', 'load_url', 'open',
'remove_tab', 'set_print_preview', 'set_zoom']

Stefan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]