Anyway, I am using Ecplise Kepler, installed all the PyDev stuff with it, however, as I am trying to write out a simple program, I keep getting errors, resulting me unable to execute the program at all.
- Code: Select all
from PyQt4 import QtGui
from PyQt4 import QtCore
def __init__(self, parent = None):
testlabel = QLabel('Test01')
testCombo = QComboBox('Combo Box')
buttonBox = ButtonBox(QDialogButtonBox.Ok| QDialogButtonBox.Cancel)
grid = QGridLayout()
app = sys.argv
form = Form()
if __name__ == '__main__':
In Eclipse, the QDialog, and all the wordings with the alphabet Q in it, are underlined in red, with the error message stating that it is not being defined and hence un-executable.
So either this means, I am writing it wayyyy wrong or there are some settings that I need to tweak in Eclipse for it to work?
Can someone help me?