예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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()
예제 #4
0
 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()
예제 #5
0
    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_()
예제 #6
0
    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_()