def _selectPackage(self): fn = lambda x: bool(x.timestamp) dlg = BrowsePackageDialog(context_model=self.context_model, parent=self.parentWidget(), package_selectable_callback=fn) dlg.exec_() if dlg.package: self.set_time(dlg.package.timestamp)
def _browse_package(self, button): self.btn.show() dlg = BrowsePackageDialog( context_model=self.context_model, package_text=self.text(), parent=self.parentWidget() ) dlg.exec_() if dlg.package: txt = dlg.package.qualified_name self.setText(txt) self.setFocus()
def _browse_package(self, button): self.btn.show() dlg = BrowsePackageDialog(context_model=self.context_model, package_text=self.text(), parent=self.parentWidget()) dlg.exec_() if dlg.package: txt = dlg.package.qualified_name self.setText(txt) self.setFocus()
def _browseVersions(self): from rezgui.dialogs.BrowsePackageDialog import BrowsePackageDialog dlg = BrowsePackageDialog(context_model=self.context_model, package_text=self.variant.qualified_package_name, close_only=True, lock_package=True, parent=self.parentWidget()) dlg.setWindowTitle("Versions - %s" % self.variant.name) dlg.exec_()