add tkinter instructions to mac&linux quicksetup.py
This commit is contained in:
parent
956514688c
commit
fdbd9761c7
@ -106,11 +106,23 @@ elif platform.system() == "Darwin":
|
|||||||
print "installing pyobjc"
|
print "installing pyobjc"
|
||||||
pip_install("pyobjc")
|
pip_install("pyobjc")
|
||||||
|
|
||||||
print "for Mac OS X, use homebrew or macports to install pyqt4:"
|
try:
|
||||||
print " brew install cartr/qt4/pyqt"
|
import Tkinter
|
||||||
print " sudo port install py27-pyqt4"
|
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":
|
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"
|
print "done"
|
||||||
|
Loading…
Reference in New Issue
Block a user