Ejemplo n.º 1
0
 def __init__(self, window_title="Message", message="ENTER A MESSAGE"):
     super(MessageBoxView, self).__init__()
     self.setWindowTitle(window_title)
     self.setModal(1)
     self.setMinimumWidth(250)
     self.setMinimumHeight(150)
     self.main_layout = QtWidgets.QVBoxLayout()
     self.message = QtWidgets.QLabel(message)
     self.ok_btn = push_button("Ok", self.ok_pressed)
     self.setup_ui()
     if get_application() is "standalone" or get_application() is "houdini":
         self.setStyleSheet(get_houdini_style())
Ejemplo n.º 2
0
 def __init__(self):
     super(AboutView, self).__init__()
     self.setWindowTitle("About Auri")
     self.setModal(1)
     self.setFixedSize(400, 300)
     self.main_layout = QtWidgets.QVBoxLayout()
     self.about_text = QtWidgets.QLabel()
     self.ok_btn = push_button("Ok", self.ok_pressed)
     # self.cancel_btn = push_button("Cancel", self.cancel_pressed)
     self.setup_ui()
     if get_application() is "standalone" or get_application() is "houdini":
         self.setStyleSheet(get_houdini_style())
Ejemplo n.º 3
0
    def __init__(self, scripts, main_model):
        """

        Args:
            main_model (auri.models.main_model.MainModel):
        """
        self.model = main_model
        self.scripts = scripts
        super(ScriptSelectorView, self).__init__()
        self.setWindowTitle("Script Selection")
        self.setModal(1)
        self.main_layout = QtWidgets.QVBoxLayout()
        self.script_list = QtWidgets.QListView()
        self.ok_btn = push_button("Ok", self.ok_pressed)
        self.cancel_btn = push_button("Cancel", self.cancel_pressed)
        self.setup_ui()
        if get_application() is "standalone" or get_application() is "houdini":
            self.setStyleSheet(get_houdini_style())
Ejemplo n.º 4
0
def bootstrap_standalone():
    app = QtWidgets.QApplication(sys.argv)
    win = BootstrapView()
    win.setStyleSheet(get_houdini_style())
    app.exec_()
Ejemplo n.º 5
0
def bootstrap_houdini():
    import hou
    win = BootstrapView(parent=hou.ui.mainQtWindow())
    win.setStyleSheet(get_houdini_style())