I am making a GUI for a script I am making, after researching I found pyqt would be helpful. I have now made a GUI with no working buttons as of yet in pyqt but wanted to look at the code.
I opened cmd.exe and typed in:
pyuic4 project.ui -o python.py
It created me a python.py script which showed me all the script I needed, however when I run it via IDLE or command prompt it shows it as running but no GUI opens up. Am I doing something wrong?
Also on a side note, is pyqt suitable to use to create a simple GUI for windows, or is it for mobile development?
Here is a snippet of code that i want to compile and run
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_FileHash(object):
def setupUi(self, FileHash):