def launch_shelve(): from tortoisehg.hgtk import thgshelve dlg = thgshelve.run(ui.ui()) dlg.set_transient_for(self) dlg.set_modal(True) dlg.display() dlg.connect('destroy', lambda w: self.update())
def shelve_clicked(self, toolbutton, data=None): dlg = thgshelve.run(self.ui) dlg.display()