Attachment 'single-window.py'
Download 1 #!/usr/bin/env python
2
3 import epiphany
4
5 def attach_tab(window, tab):
6 if epiphany.ephy_shell_get_default().get_session().get_windows()[0] != window:
7 window.get_notebook().remove_page(0)
8 epiphany.ephy_shell_get_default().get_session().get_windows()[0].get_notebook().add_tab(tab,epiphany.ephy_shell_get_default().get_session().get_windows()[0].get_notebook().get_n_pages() + 1, 1)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.