Example #1
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())
Example #2
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())
Example #3
0
    def setup_ui(self):
        new_name_layout = QtWidgets.QHBoxLayout()
        new_name_label = QtWidgets.QLabel("New name:")
        self.new_name.setText(self.script_view.module_name)

        new_name_layout.addWidget(new_name_label)
        new_name_layout.addWidget(self.new_name)

        self.main_layout.addLayout(new_name_layout)
        self.main_layout.addStretch(1)
        self.main_layout.addWidget(self.ok_btn)
        self.main_layout.addWidget(self.cancel_btn)
        self.setLayout(self.main_layout)