Thread
:
Are there any N900 PyQt examples?
View Single Post
irooniam
2010-02-03 , 02:06
Posts: 13 | Thanked: 2 times | Joined on Sep 2009
#
6
Hello,
this might help you a bit.
I use qt designer and then I use pyside's tool to convert the xx.ui to xx.py to include
pyside-uic -d xx.ui -o xx.py
my main body of code (main.py) looks like this:
from PySide import QtCore, QtGui
import sys
import ui
class starter(QtGui.QMainWindow):
def __init__(self, parent=None):
super(starter, self).__init__(parent)
self.ui = ui.Ui_Frame()
self.ui.setupUi(self)
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
starter = starter()
starter.show()
sys.exit(app.exec_())
Please note that this example, used a frame, so if you start with a widget your line will look something like:
ui.Ui_Widget()
Hope that helps.
Quote & Reply
|
irooniam
View Public Profile
Send a private message to irooniam
Find all posts by irooniam