Skip to content

Commit

Permalink
Switched PySide imports to qtpy and changed she bang to be platform a…
Browse files Browse the repository at this point in the history
…gnostic
  • Loading branch information
debug committed Jan 15, 2020
1 parent 19f8d5f commit 88d1588
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 13 deletions.
5 changes: 3 additions & 2 deletions scripts/ingestIt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#! /usr/local/bin/python3
#!/usr/bin/env python

import os
import sys
import re
from pathlib import Path
import json
from enum import Enum

from PySide2 import QtGui, QtWidgets, QtCore
from qtpy import QtGui, QtWidgets, QtCore

import qtmodern.styles
import qtmodern.windows
Expand Down
4 changes: 2 additions & 2 deletions scripts/mrFilmOut
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#! /usr/local/bin/python3
#!/usr/bin/env python

import sys
import os
import re
import shutil

import xlsxwriter
from PySide2 import QtGui, QtWidgets, QtCore
from qtpy import QtGui, QtWidgets, QtCore
import qtmodern.styles
import qtmodern.windows

Expand Down
4 changes: 2 additions & 2 deletions scripts/noteBao
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#! /usr/local/bin/python3
#!/usr/bin/env python

import sys
import os
from os.path import expanduser
from PySide2 import QtWidgets, QtGui, QtCore
from qtpy import QtWidgets, QtGui, QtCore

import qtmodern.styles
import qtmodern.windows
Expand Down
4 changes: 2 additions & 2 deletions scripts/vfxConfigManager
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /usr/local/bin/python3
#!/usr/bin/env python

from PySide2 import QtWidgets, QtCore
from qtpy import QtWidgets, QtCore
import qtmodern.styles
import qtmodern.windows
import sys
Expand Down
4 changes: 1 addition & 3 deletions scripts/vfxTray
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/local/bin/python3
#!/usr/bin/env python

import os
import subprocess
Expand All @@ -22,8 +22,6 @@ def openFilmOut():
def openConfigManager():
subprocess.call(["python3", os.path.join(LOCATION, "vfxConfigManager")])



def main():
app = QtWidgets.QApplication([])
app.setQuitOnLastWindowClosed(False)
Expand Down
2 changes: 1 addition & 1 deletion vfxClientToolkit/ui/about.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PySide2.QtWidgets import QMessageBox
from qtpy.QtWidgets import QMessageBox

#QMessageBox.about(self, "About PySide, Platform and version.",
#"""<b> about.py version %s </b>
Expand Down
2 changes: 1 addition & 1 deletion vfxClientToolkit/ui/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PySide2 import QtGui
from qtpy import QtGui

def centerWidget(parent):
frame = parent.frameGeometry()
Expand Down

0 comments on commit 88d1588

Please sign in to comment.