Reply
Thread Tools
Posts: 376 | Thanked: 78 times | Joined on Sep 2009
#101
Hi All,

Thanks for the examples and tutorials, done the Hello world and list examples and started on eric4 now.

That was a wierd install, just running install.py to install eric4, then I have to run eric4.bet to start the program! Is that normal?

Also, when I've put the mini browser example on my N900 (that works on my PC) i get an error "cannot import name QtWebKit" even though I installed PyQt Full Install (that said in the details it had QtWebKit!) from devel using app manager, it is still coming up with this error!

Any help would be much appreciated!

[Edit] In addition, I initially installed PyQt through XTerm, using the apt get method towards the start of this thread. Then did the install from devel after getting the error message the first time. Now the PyQt Full Install isn't listed in app manager, under Uninstall (which apps normally do don't they?)!

Thanks.

Last edited by Dexter1759; 2010-02-25 at 12:16.
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#102
Originally Posted by Dexter1759 View Post
[Edit] In addition, I initially installed PyQt through XTerm, using the apt get method towards the start of this thread. Then did the install from devel after getting the error message the first time. Now the PyQt Full Install isn't listed in app manager, under Uninstall (which apps normally do don't they?)!
A bit confusing what's going on. The 'full install' does depend on webkit, so it should not be missing. Can you post the output of 'dpkg -l |grep qt4' and 'apt-cache policy python2.5-qt4-webkit' so we would know what's the existing state of packages over there ?
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Posts: 376 | Thanked: 78 times | Joined on Sep 2009
#103
OK, typing "dpkg -l |grep qt4" gives me this...

Code:
/home/user # dpkg -l |grep qt4
ii  libqt4-core                                         4.5.3~git20090723-0maemo6+0m5      Qt 4 core module
ii  libqt4-dbus                                         4.5.3~git20090723-0maemo6+0m5      Qt 4 D-Bus module
ii  libqt4-gui                                          4.5.3~git20090723-0maemo6+0m5      Qt 4 GUI module
ii  libqt4-network                                      4.5.3~git20090723-0maemo6+0m5      Qt 4 network module
ii  libqt4-opengl                                       4.5.3~git20090723-0maemo6+0m5      Qt 4 OpenGL module
ii  libqt4-phonon                                       4.5.3~git20090723-0maemo6+0m5      Qt 4 Phonon Libraries
ii  libqt4-sql                                          4.5.3~git20090723-0maemo6+0m5      Qt 4 SQL module
ii  libqt4-sql-sqlite                                   4.5.3~git20090723-0maemo6+0m5      Qt 4 SQLite plugin
ii  libqt4-svg                                          4.5.3~git20090723-0maemo6+0m5      Qt 4 SVG module
ii  libqt4-xml                                          4.5.3~git20090723-0maemo6+0m5      Qt 4 XML module
ii  python2.5-qt4-common                                4.7-maemo7                         Shared files for PyQt4
ii  python2.5-qt4-core                                  4.7-maemo7                         Python bindings for Qt4 Core components.
ii  python2.5-qt4-gui                                   4.7-maemo7                         Python bindings for Qt4 Core 
components.
And "apt-cache policy python2.5-qt4-webkit" gives me this:

Code:
/home/user # apt-cache policy python2.5-qt4-webkit
python2.5-qt4-webkit:
  Installed: (none)
  Candidate: 4.7-maemo7
  Version table:
     4.7-maemo7 0
        500 http://repository.maemo.org fremantle/free Packages
        500 http://repository.maemo.org fremantle/free Packages
     4.7-maemo6 0
        500 http://repository.maemo.org fremantle/free Packages
        500 http://repository.maemo.org fremantle/free Packages
     4.7-maemo5 0
        500 http://repository.maemo.org fremantle/free Packages
        500 http://repository.maemo.org fremantle/free Packages
     4.7-maemo3 0
        500 http://repository.maemo.org fremantle/free Packages
     4.7-maemo2 0
        500 http://repository.maemo.org fremantle/free Packages
     4.7 0
        500 http://repository.maemo.org fremantle/free Packages
None of which makes much sense to me (well I kinda see what "apt-cache policy python2.5-qt4-webkit" is returning) except that it confirms webkit isn't installed (i think!)

Last edited by Dexter1759; 2010-02-25 at 14:45.
 
Posts: 376 | Thanked: 78 times | Joined on Sep 2009
#104
Aha, I just thought I'd search in App Manager for "webkit" in title and description and it listed "PyQt4 Fulle install" so it must not have installed correctly the first time round! I'm just trying again, I'll pay more attention for error messages this time!
 
Posts: 376 | Thanked: 78 times | Joined on Sep 2009
#105
Yay it worked! Sort of!

Running the actual example using eric4 (rather than the version I created myself following the tutorial!). This is how it looks:



Should the buttons and text boxes look like that?
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#106
Qt4.5 has various styling issues, so do not be surprised if things look a bit odd. Qt4.6 (coming with PR1.2) is better in that regard.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
matristain's Avatar
Posts: 40 | Thanked: 14 times | Joined on Sep 2009 @ Monterrey Mexico
#107
maybe this is quite a big step, but what about creating a widget that turns on / off bluetooth, Is this to much to ask for a tutorial ?
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#108
Yes But jokes aside, you really want to wait for Qt4.6 and QtMobility for such things. With the current versions, that tutorial would be more about low level X and DBUS programming than Qt and Python.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following 2 Users Say Thank You to attila77 For This Useful Post:
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#109
Just some added some minor updates to OP, with some additional links.
__________________
N900_Email_Options Wiki Page
 

The Following 2 Users Say Thank You to mikec For This Useful Post:
Posts: 376 | Thanked: 78 times | Joined on Sep 2009
#110
Originally Posted by mikec View Post
Just some added some minor updates to OP, with some additional links.
Thank you once again! Once I have the time I shall continue looking into PyQt development, using eric4, but first need to worry about managing my current workload and moving house.

Your tutorials/guides are exactly the sort of thing I have been looking for!

Just need to think myself up a little "project" to get me started with!

[Edit] Infact, after moving house I shall have a project to work on. I plan on getting a QNAP NAS drive, that I shall be setting up a MySQL db on for logging my hours. Would it be possible to create an app for my N900, that could connect to the MySQL database from any internet connection in the world (3G or wifi), with the ability to append, view & edit data?

Apologies for the specific question, just want to know it's possible, not how it's done.

Last edited by Dexter1759; 2010-03-01 at 16:18.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:41.