![]() |
2010-02-17
, 22:12
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#32
|
If you do it that way You might need self.ui.btnName.connect....
ETA: Also self.pushButton I don't think is going to work.. do you have a line similar to:
Code:self.ui = Ui_MainWindow()
![]() |
2010-02-17
, 22:14
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#33
|
The Following User Says Thank You to fatalsaint For This Useful Post: | ||
![]() |
2010-02-17
, 22:19
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#34
|
![]() |
2010-02-17
, 22:40
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#35
|
![]() |
2010-02-17
, 22:44
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#36
|
The Following 2 Users Say Thank You to fatalsaint For This Useful Post: | ||
![]() |
2010-02-17
, 22:57
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#37
|
The Following User Says Thank You to attila77 For This Useful Post: | ||
![]() |
2010-02-17
, 22:58
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#38
|
QMessageBox.information(self, "Loading Data", "Please wait while the data is retrieved...")
Oh.. YOU wanted to find it.. sorry
![]() |
2010-02-17
, 23:01
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#39
|
fatalsaint is right, never ever touch generated code. An old indian trick is to automate pyuic4 calls - before you do the import, check timestamps and do a pyuic call if the .ui is newer (I intentionally won't show you how to do this so you could discover it on your own). On the long run this saves you a little bit of typing, and a lot of time when something doesn't work because you forgot pyuic (and that can happen a lot if you have a 100 .ui-s
)
![]() |
2010-02-17
, 23:19
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#40
|
![]() |
Tags |
code, health check, n900, python |
Thread Tools | |
|
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -