[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] SIP/PyQt 3.3rc1 problem with pyuic + FILES
From: Hans-Peter Jansen <hpj () urpla ! net>
Date: 2002-06-23 19:11:18
[Download RAW message or body]
[Now with the missing files attached]
Hi Phil,
today I tried to show the ease and joy of developing with PyQt to a friend.
He is looking for a simple database UI generation tool for his oracle stuff.
I took the designer and created the attached form2.ui, but the generated
source was missing some self references :-(
I've attached the diff of what I've changed to get this working. Because it
took me 10 min. only incl. fixing, he was quite impressed, but it could have
been below 5 min! (He was a bit scared also, if he would had to fix this
himself, being a real python greenhorn...)
Hans-Peter
PS: I used designer's database wizard for the first time :-)
["form2.ui" (application/octet-stream)]
["form2.diff" (application/octet-stream)]
--- form2.py.gen Sun Jun 23 20:36:17 2002
+++ form2.py Sun Jun 23 20:37:10 2002
@@ -133,10 +133,10 @@
DataBrowser1Layout.addLayout(Layout4,2,0)
self.DataBrowser1Form = QSqlForm(self,"DataBrowser1Form")
- DataBrowser1Form.insert(QSpinBoxStatusid,"statusid")
- DataBrowser1Form.insert(QLineEditSurname,"surname")
- DataBrowser1Form.insert(QLineEditSalary,"salary")
- DataBrowser1Form.insert(QLineEditForename,"forename")
+ self.DataBrowser1Form.insert(self.QSpinBoxStatusid,"statusid")
+ self.DataBrowser1Form.insert(self.QLineEditSurname,"surname")
+ self.DataBrowser1Form.insert(self.QLineEditSalary,"salary")
+ self.DataBrowser1Form.insert(self.QLineEditForename,"forename")
self.DataBrowser1.setForm(self.DataBrowser1Form)
self.connect(self.PushButtonFirst,SIGNAL("clicked()"),self.DataBrowser1,SLOT("first()"))
@@ -160,7 +160,7 @@
self.DataBrowser1.setSqlCursor(cursor,1)
self.DataBrowser1.refresh()
self.DataBrowser1.first()
- QDialog.polish()
+ QDialog.polish(self)
if __name__ == "__main__":
_______________________________________________
PyKDE mailing list PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic