Exemplo n.º 1
0
 def edit_title(self):
     newTitle, result = QInputDialog.getText(None, 'new title', 'enter a new title')
     
     if not result:
         return
         
     item = self.get_item(self.tree.currentItem())
     item.label = newTitle
     save(item, newTitle)
     self.tree.currentItem().setText(0, item.label)
Exemplo n.º 2
0
 def create_html_page(self):
     item = self.get_item(self.tree.currentItem())
     
     page = None
     
     if item.page == None:
         page = item.add_html_page()
         save(item, page=page)
     else:
         page = item.add_html_page()
     
     self.show_page(page)