Changeset e442b8821e135b7e4a656ed1ccff664c98b39aef
- Timestamp:
- 06/05/07 09:57:20 (6 years ago)
- Author:
- iacopo <iacopo@…>
- Children:
- 419963371a32e1ff6c61b365ec83c88b4bfd3b4b
- Parents:
- b636126e39ebd09e40e2349c3c5948b9f9c36284
- git-committer:
- iacopo <iacopo@…> (06/05/07 09:57:20)
- Message:
-
Try/except add to browser section
git-svn-id: https://labs.truelite.it/svn/octofuss/trunk@379 5a101938-5c21-0410-9b5a-a83d6f3706a9
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r157dcb1
|
re442b88
|
|
| 28 | 28 | |
| 29 | 29 | |
| 30 | | import webbrowser |
| 31 | | |
| 32 | | |
| 33 | | |
| 34 | 30 | class OctoSplash(gtk.Window): |
| 35 | 31 | def __init__(self): |
| … |
… |
|
| 164 | 160 | |
| 165 | 161 | def open_url(self,url): |
| 166 | | return webbrowser.open(url) |
| | 162 | try: |
| | 163 | import webbrowser |
| | 164 | webbrowser.open(url) |
| | 165 | except Exception, e: |
| | 166 | self.__error_dialog("Problem opening the web browser:\n"+str(e)) |
| | 167 | |
| 167 | 168 | |
| 168 | 169 | def add_tab(self,object): |
| … |
… |
|
| 177 | 178 | tab = self.notebook.get_nth_page(i) |
| 178 | 179 | label = self.notebook.get_tab_label(tab).get_text() |
| | 180 | from octofuss.cluster import HostWindow |
| | 181 | |
| 179 | 182 | if label == tabName: |
| 180 | 183 | current = False |
| … |
… |
|
| 182 | 185 | current = True |
| 183 | 186 | self.notebook.remove_page(i) |
| 184 | | from octofuss.cluster import HostWindow |
| 185 | 187 | self.add_tab(HostWindow()) |
| 186 | 188 | tab_number = self.notebook.get_n_pages() |