add tkinter instructions to mac&linux quicksetup.py

This commit is contained in:
Headshotnoby 2021-06-22 17:56:17 -04:00
parent 956514688c
commit fdbd9761c7

View File

@ -106,11 +106,23 @@ elif platform.system() == "Darwin":
print "installing pyobjc"
pip_install("pyobjc")
print "for Mac OS X, use homebrew or macports to install pyqt4:"
try:
import Tkinter
print "for Mac OS X, use homebrew or macports to install pyqt4."
print " brew install cartr/qt4/pyqt"
print " sudo port install py27-pyqt4"
except: # mac doesn't have tkinter
print "for Mac OS X, use homebrew or macports to install tkinter and pyqt4."
print "Homebrew:"
print " brew uninstall python"
print " brew install tk"
print " brew install python --with-tcl-tk"
print " brew install cartr/qt4/pyqt"
print "MacPorts:"
print " sudo port install py27-tkinter -x11 +quartz"
print " sudo port install py27-pyqt4"
elif platform.system() == "Linux":
print "you need to install PyQt4 on your linux distro after this"
print "you need to install PyQt4 and tkinter on your linux distro after this"
print "done"