Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 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_()
Ejemplo n.º 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_()