|
Page 4 of 20 |
|
Prev |
2 3 4
5 6 14
|
Next
| Last
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
ui = Ui_MainWindow() |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
But I'm sort of flying blind here with just pieces of your code and there's likely several ways this can be accomplished. If you got it working you're good. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Just messaged you - meh, not quite working!
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Perfect, thank you again Fatalsaint.
Have it working like a dream now! Its interesting, because re-reading the code, it now makes sense! But i suppose i do like the trial and error! Now i need to do a popup message to say Loading data then loaded data - as the update takes 5/6 seconds :( A gooooogling/wiki'ing/searching i go! |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
QMessageBox.information(self, "Loading Data", "Please wait while the data is retrieved...")
Oh.. YOU wanted to find it.. sorry :p |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
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 :p ). 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 :) )
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Needed to add the mainwindow bit, as i called it from within the function :) Would prefer the sexy yellow message that dissapears after a few seconds lol - my next hunt! QtGui.QMessageBox.information(MainWindow, "Loading Data", "Please wait while the data is retrieved...") |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
On my next project - will learn the proper way hehe :) (Mainly did it this way, as i didnt learn QT designer properly, and didnt realise you could build code into it, thought it was just gui only) |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
hmmm on searching for the hildon banner i found it (didn't work.... )
But also saw General A's bug post for fmms "No Hildon Banner cluttering up the screen. Notification using the wheel in the menubar is sufficient." Anyone tell me what the notification wheel is, and how to activate it? :D :D |
| All times are GMT. The time now is 19:33. |
Page 4 of 20 |
|
Prev |
2 3 4
5 6 14
|
Next
| Last
vBulletin® Version 3.8.8