![]() |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
NICE:D:D:D:D:D This is amazing.
Are you no longer sticking with the green theme? I was wondering if it is possible to make the signal strength measurement on the comms tab to be dynamic so that it varies with signal level changes. Would it be possible to have a widget version Thanks Quote:
|
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
Going to start working on something this week, still not wholly decided! Hmmmmm, i have to admit i am trying to complete threading etc, to allow the values to auto update, but for now i might need to stick with a 'Click to update' if that is ok? Hmmmm widget-wise, it is probably worth using queenbee/DSE (Not sure those two can do everything though?) |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
it is okay for now but would love to see the signal changes as you move around.
Installed Quenbee but it is not that quite easy to use. |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
good point. i spose my plans to improve are as follows:
Improve ui add multi threading or similar function to allow updating add further tests add translations The UI part will be developed over the next two weeks, and will be pretty much a full re-code as well. But if anyone has useful tips for threading in pyqt, please let me know! |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
Well, of course we have! The easiest way is using QThreadPool with a custom QRunnable implementation. Your QRunnable's run() method would check the necessary values and refresh the UI. The main UI window should have a QTimer and on a predefined interval (on the QTimer's timeout signal), it would create a new instance of your own QRunnable and make the thread pool execute it. Note that the thread pool has a static "global instance", so you don't have to create an instance of it, just access the global instance and make that do things for you. |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
I did see THP did something here, that looked similar to threading / updating - but may not be suitable. Will see if i can get some basic versions running, assuming it all works, i can't see it being too difficult to do it for all updatable values :) |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
Quote:
Quote:
No need to do it separately for all the updatable values. (As this is not a quad core monster processor, there is no point in launching that many threads at once. The usual good practice is to keep one thread for the UI, and do all the other stuff that would otherwise slow it down in separate threads.) |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
ie Code:
a = gn_functions.getaValue() |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
I would do it the following way: - Create a method in the UI that calls those functions you're talking about - Then, create a class that derives from QRunnable (Let's call it Updater) and has a reference to the UI class, and in its run() method calls the method that you created above - Create a QTimer in the UI class and in its timeout(), create a new instance of the Updater class you created above, and make the global instance of QThreadPool execute it. It couldn't be more straightforward. :) I would gladly post code examples, but I don't know a thing about Python :( , and I'm not sure whether my C++ example would be of any use to you. :p |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
Quote:
Quote:
Quote:
|
| All times are GMT. The time now is 19:07. |
vBulletin® Version 3.8.8