Skip to content

AbedSHP/Pyside2_Maya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Pyside2_Maya

PyQt5_Maya

Pyside2 for 2018 ~ 2024 ( Windows & Linux & MAC )

Notice: PyQt does not have the same licensing as Maya, Qt, or Python. Please consult the PyQt website for information about licensing for PyQt.

to this :

import sys
from PySide2 import QtCore
from PySide2.QtWidgets import QApplication, QMainWindow ,QLineEdit, QPushButton, QApplication,QVBoxLayout, QDialog
 
folderPath = "D:../Rana/img"
sys.path.append(folderPath)

from Ui_main import Ui_MainWindow   

from PySide2.QtWidgets  import QApplication, QMainWindow

class MainWindow(QMainWindow, Ui_MainWindow):

    def __init__(self, parent=None):
        QMainWindow.__init__(self, None, QtCore.Qt.WindowStaysOnTopHint)
        self.setupUi(self)

        self.setWindowTitle("Rana GUI")

        

if (__name__ == '__main__'):

    app = QApplication(sys.argv)

    mainWindow = MainWindow()

    mainWindow.show()

    sys.exit(app.exec_())

Run Script in Maya Script Editor: 2018 ~ 2024 :

import sys

path = r"D:\tmp\Project_Rana\scripts\Rana"
if not path in sys.path:

	sys.path.append(path)

import GUI
import importlib
importlib.reload(GUI)
        
fb = GUI.MainWindow()
fb.show()

alt text

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages