Exemple #1
0
    def __init__(self):
        super(SmartSave, self).__init__(parent=maya_main_window())
        self.setWindowTitle('Smart Save')
        self.resize(450, 200)
        self.smartCore = mayautils.SceneFile()

        self.create_widgets()
        self.create_layout()
        self.establish_connections()
Exemple #2
0
 def __init__(self):
     super(SmartSaveUI, self).__init__(parent=maya_main_window())
     self.scene = mayautils.SceneFile()
     self.setWindowTitle("SmartSaveUI")
     self.resize(500, 200)
     self.setWindowFlags(self.windowFlags()
                         ^ QtCore.Qt.WindowContextHelpButtonHint)
     self.create_widgets()
     self.create_layout()
     self.create_connections()
 def __init__(self):
     """Constructor"""
     # Passing SmartSaveUI makes this Python 2 and 3 compatible
     super(SmartSaveUI, self).__init__(parent=maya_main_window())
     self.scene = mayautils.SceneFile(current_scene=True)
     self.setWindowTitle("Smart Save")
     self.resize(500, 200)
     self.setWindowFlags(self.windowFlags()
                         ^ QtCore.Qt.WindowContextHelpButtonHint)
     self.create_widgets()
     self.create_layout()
     self.create_connections()
    def __init__(self):
        '''Constructor'''
        #Allows constructor to work with python 2 and 3
        super(smartsaveui, self).__init__(parent=maya_main_window())
        self.scene = mayautils.SceneFile()

        self.setWindowTitle("Maya Smart Save")
        self.resize(500, 200)
        self.setWindowFlags(self.windowFlags()
                            ^ QtCore.Qt.WindowContextHelpButtonHint)
        self.create_widgets()
        self.create_layout()
        self.create_connections()
 def __init__(self):
     """constructor"""
     # Passing the object smartsaveui as an argument to super()
     # makes this line python 2 and 3 compatible
     super(SmartSaveUI, self).__init__(parent=maya_main_window())
     self.scene = mayautils.SceneFile()
     self.setWindowTitle("Smart Save")
     self.resize(500, 200)
     self.setWindowFlags(self.windowFlags()
                         ^ QtCore.Qt.WindowContextHelpButtonHint)
     self.create_witgets()
     self.create_layout()
     self.create_connections()
 def __init__(self):
     """Constructor"""
     # Passing the object SimpleUI as an argument to super()
     # Makes this line python 2 and 3 compatible
     super(SmartSaveUI, self).__init__(parent=maya_main_window())
     self.scene = mayautils.SceneFile()
     print(self.scene.dir)
     print(self.scene.version)
     self.setWindowTitle("Smart Save")
     self.resize(800, 300)
     self.setWindowFlags(self.windowFlags()
                         ^ QtCore.Qt.WindowContextHelpButtonHint)
     self.create_widgets()
     self.create_layout()
     self.create_connections()