[PyQt] Nokia pwns Trolltech for $153MM

Angel Leon gubatron at gmail.com
Mon Jan 28 14:13:42 GMT 2008


http://www.engadgetmobile.com/2008/01/28/nokia-acquires-trolltech-the-biggest-little-company-youve-ne/

Take that Android, awesome move by Nokia to make Mobile development open.
Let's hope things will only get better for Qt with Nokia behind it, for
mobile developers as well as Desktop and
Server developers.

On Jan 28, 2008 1:41 AM, <pyqt-request at riverbankcomputing.com> wrote:

> Send PyQt mailing list submissions to
>        pyqt at riverbankcomputing.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> or, via email, send a message with subject or body 'help' to
>        pyqt-request at riverbankcomputing.com
>
> You can reach the person managing the list at
>        pyqt-owner at riverbankcomputing.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PyQt digest..."
>
>
> Today's Topics:
>
>   1. Re: Re: Re: How to communicate with mysql? (Hans-Peter Jansen)
>   2. How to write a GUI interface for a set of Python programs?
>      (Algis Kabaila)
>   3. Re: processEvents on QlistWidget operations does nothing
>      (Andreas Pakulat)
>   4. Re: How to write a GUI interface for a set of Python
>      programs? (Hans-Peter Jansen)
>   5. Re: How to write a GUI interface for a set of Python
>      programs? (Andreas Pakulat)
>   6. Re: How to write a GUI interface for a set of Python
>      programs? (Algis Kabaila)
>   7. Qt designer & KDE (Daniel O'Connor)
>   8. Re: How to write a GUI interface for a set of Python
>      programs? (Andreas Pakulat)
>   9. Re: Qt designer & KDE (Andreas Pakulat)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 27 Jan 2008 21:11:21 +0100
> From: Hans-Peter Jansen <hpj at urpla.net>
> Subject: Re: [PyQt] Re: Re: How to communicate with mysql?
> To: pyqt at riverbankcomputing.com
> Message-ID: <200801272111.22125.hpj at urpla.net>
> Content-Type: text/plain;  charset="utf-8"
>
> Am Sonntag, 27. Januar 2008 schrieb Ryen Lee:
> > > > Hi everybody! I am a newbie for PyQT.Now I am write a simple
> programm
> > > > which
> > > >
> > > > > use mysql as its database,but I find it is very diffucult to use
> > > > > the
> > > >
> > > > PyQT
> > > >
> > > > > APIs.I write sth like that:
> > > > >
> > > > > db = QtSql.QSqlDatabase.addDatabase("QMYSQL")
> > > > > db.setHostName("127.0.0.1")
> > > > > db.setDatabaseName("test")
> > > > > db.setUserName("root")
> > > > > db.setPassword("123456")
> > > > > db.open()
> > > > >
> > > > > but it just doesn't work. <snip>
> > > >
> > > >    - Meaning? What does db.open() return, True or False? Does the
> > > >    database "test"
> > > >    exist? And is Qt configured with MySQL support?
> > > >
> > > >    Or did you perhaps call these methods before you had created a
> > > >    QApplication or
> > > >    a QCoreApplication object? That won't work and the error messages
> > > >    aren't very
> > > >    helpful for this case.
> > > >
> > > >    I can't test your code, because I don't have MySQL installed.
> > > >
> > > >    HTH
> > > >    Sibylle
> > > >
> > > >
> > > >
> > > > --
> > > > Dr. Sibylle Koczian
> > >
> > > Thank you for your reply!
> >
> >  I try to fix the problem as you told,but I failed finally.I think PyQt
> > doesn't support mysql very well,because when I change
> > db = QtSql.QSqlDatabase.addDatabase("QMYSQL")
> > to
> > db = QtSql.QSqlDatabase.addDatabase("QSQLITE")
> >
> > it works.So I decide to use mysqldb instead of PyQT's APIs
>
> Your logic above doesn't make any sense (for me at least).
>
> While you're free to use whatever database backend/interface you want, I'm
> inclined to mention, that I use mysql successfully since ages (I did some
> of the PyQt3 examples, when I started) with lots of success. Sure, some
> API
> details looks arkward from a python perspective due to the underlying C++
> type system (QVariant and friends), but on the plus side, it's a pleasure
> to create/display a table with 30000 records without problems (neither at
> the memory nor at the slowness front due to some pretty elaborated Qt
> algorithms at work down under). It will take significant developer
> resources to create something on par with the Qt database framework (been
> there, done that for specialized tkinter case).
>
> I cannot imagine, that the situation turned much worse with PyQt4.
>
> Cheers,
> Pete
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 28 Jan 2008 09:21:20 +1100
> From: Algis Kabaila <akabaila at pcug.org.au>
> Subject: [PyQt] How to write a GUI interface for a set of Python
>        programs?
> To: pyqt at riverbankcomputing.com
> Message-ID: <200801280921.20297.akabaila at pcug.org.au>
> Content-Type: text/plain;  charset="utf-8"
>
> On Mon, 28 Jan 2008 07:11:21I another thread Hans-Peter Jansen wrote:
> > Am Sonntag, 27. Januar 2008 schrieb Ryen Lee:
> > > > > Hi everybody! I am a newbie for PyQT.Now I am write a simple
> programm
> > > > >
> [...]
> The above sentence from another thread describes well my current status.
>
> In the last few years I wrote a series of programs in Python for
> Structural
> Analysis for Engineering structures.  IMHO, Python is a great teaching
> language that enables one to expose the basic principles of programming
> without having to go into extraneous details.
>
> Currently those programs lack GUI.  I would like to write GUI with a
> minimum
> need to substantially change my extant Python programs and a
> minimum "immersion" into yet another computer language (I am 83 and have
> learned many languages - computer since the valve computer days as well as
> human - in my long and varied life).
>
> PyQt interface looks pretty, it is an integral part of KDE, so it seems
> like
> the right candidate for my objectives.
>
> Is it possible to create a GUI with QtDesigner and "assemble" it into PyQt
> from the *.ui files and then outside of the QtDesigner call extant Python
> programs?  Or is that an impossible dream?
>
> If that is possible, how can I achieve that aim with the latest (?)
> QtDesigner
> version 3.3.8?
>
> Your suggestions on this topic will be gratefully received.
>
> Yours sincerely,
>
> OldAl
> from Canberra, the capital of Down Under.
>
> --
> Algis Kabaila (Dr)
> http://akabaila.pcug.org.au/StructuralAnalysis/
>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 27 Jan 2008 23:22:36 +0100
> From: Andreas Pakulat <apaku at gmx.de>
> Subject: Re: [PyQt] processEvents on QlistWidget operations does
>        nothing
> To: qt-interest at trolltech.com, pyqt at riverbankcomputing.com
> Message-ID: <20080127222236.GA8622 at morpheus.apaku.dnsalias.org>
> Content-Type: text/plain; charset=us-ascii
>
> On 27.01.08 13:36:37, Scott Aron Bloom wrote:
> > > Its not about replacing 1 line of code, its about properly designing
> > > your applications business logic. Moving heavy work into a thread is
> > the
> > > right thing to do (or separate process). QApplication::processEvents
> > is
> > > the ugly hack for those who are not able to use threads properly.
> > >
> > > Andreas
> > >
> > But... adding 1 item to a list view.. is not heavy work.. And neigher
> > does it appear that the creation of the complete list of items...
>
> Right, but thats not what the code actually does and I also suspect that
> adding the item is still done in the main thread.
>
> > If the code was actually downloading the content of each URL... then I
> > would put it in a thread..
>
> Thats exactly what the urllib-call (notice the read() at the end of that
> line) does, it opens the url and reads the whole file. And I suspect
> that this is the part that got moved into a separate thread. Now maybe
> I've just seen far worse code, but a short QThread::run() that iterates
> over urls, downloads them and then emits a signal for each with whatever
> content is needed doesn't look ugly to me.
>
> Andreas
>
> --
> This will be a memorable month -- no matter how hard you try to forget it.
>
>
> ------------------------------
>
> Message: 4
> Date: Sun, 27 Jan 2008 23:41:03 +0100
> From: Hans-Peter Jansen <hpj at urpla.net>
> Subject: Re: [PyQt] How to write a GUI interface for a set of Python
>        programs?
> To: pyqt at riverbankcomputing.com
> Message-ID: <200801272341.04223.hpj at urpla.net>
> Content-Type: text/plain;  charset="utf-8"
>
> Am Sonntag, 27. Januar 2008 schrieb Algis Kabaila:
> > On Mon, 28 Jan 2008 07:11:21I another thread Hans-Peter Jansen wrote:
> > > Am Sonntag, 27. Januar 2008 schrieb Ryen Lee:
> > > > > > Hi everybody! I am a newbie for PyQT.Now I am write a simple
> > > > > > programm
> >
> > [...]
> > The above sentence from another thread describes well my current status.
> >
> > In the last few years I wrote a series of programs in Python for
> > Structural Analysis for Engineering structures.  IMHO, Python is a great
> > teaching language that enables one to expose the basic principles of
> > programming without having to go into extraneous details.
> >
> > Currently those programs lack GUI.  I would like to write GUI with a
> > minimum need to substantially change my extant Python programs and a
> > minimum "immersion" into yet another computer language (I am 83 and have
> > learned many languages - computer since the valve computer days as well
> > as human - in my long and varied life).
> >
> > PyQt interface looks pretty, it is an integral part of KDE, so it seems
> > like the right candidate for my objectives.
>
> Congrats for the tasteful choice and welcome to the club.
>
> > Is it possible to create a GUI with QtDesigner and "assemble" it into
> > PyQt from the *.ui files and then outside of the QtDesigner call extant
> > Python programs?  Or is that an impossible dream?
>
> Sure you can.
>
> > If that is possible, how can I achieve that aim with the latest (?)
> > QtDesigner version 3.3.8?
>
> The easiest way is to use eric. But there are a lot of successful generic
> approaches. E.g. for historical reasons, I'm using a classical Makefile
> approach for quick deployment.
>
> Start reading http://www.diotavelli.net/PyQtWiki, and come back, if you're
> stuck in the details.
>
> > Your suggestions on this topic will be gratefully received.
> >
> > Yours sincerely,
> >
> > OldAl
> > from Canberra, the capital of Down Under.
>
> Bye,
> Pete
>
>
> ------------------------------
>
> Message: 5
> Date: Sun, 27 Jan 2008 23:55:26 +0100
> From: Andreas Pakulat <apaku at gmx.de>
> Subject: Re: [PyQt] How to write a GUI interface for a set of Python
>        programs?
> To: pyqt at riverbankcomputing.com
> Message-ID: <20080127225526.GD8622 at morpheus.apaku.dnsalias.org>
> Content-Type: text/plain; charset=us-ascii
>
> On 28.01.08 09:21:20, Algis Kabaila wrote:
> > On Mon, 28 Jan 2008 07:11:21I another thread Hans-Peter Jansen wrote:
> > > Am Sonntag, 27. Januar 2008 schrieb Ryen Lee:
> > > > > > Hi everybody! I am a newbie for PyQT.Now I am write a simple
> programm
> > > > > >
> > [...]
> > The above sentence from another thread describes well my current status.
> >
> > In the last few years I wrote a series of programs in Python for
> Structural
> > Analysis for Engineering structures.  IMHO, Python is a great teaching
> > language that enables one to expose the basic principles of programming
> > without having to go into extraneous details.
> >
> > Currently those programs lack GUI.  I would like to write GUI with a
> minimum
> > need to substantially change my extant Python programs and a
> > minimum "immersion" into yet another computer language (I am 83 and have
> > learned many languages - computer since the valve computer days as well
> as
> > human - in my long and varied life).
> >
> > PyQt interface looks pretty, it is an integral part of KDE, so it seems
> like
> > the right candidate for my objectives.
> >
> > Is it possible to create a GUI with QtDesigner and "assemble" it into
> PyQt
> > from the *.ui files and then outside of the QtDesigner call extant
> Python
> > programs?  Or is that an impossible dream?
>
> Thats quite easy using a python-written class that uses the .ui file to
> setup the GUI.
>
> > If that is possible, how can I achieve that aim with the latest (?)
> QtDesigner
> > version 3.3.8?
>
> I suggest to look into PyQt4 instead, Qt 3.3 is not maintained anymore
> by TT (maybe for important security fixes) and thus doesn't get updates
> anymore. PyQt4/Qt4 is the current state of the art and it still ships
> with designer, though the actual use of the .ui files has changed a bit.
>
> Andreas
>
> --
> Better hope the life-inspector doesn't come around while you have your
> life in such a mess.
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 28 Jan 2008 14:55:45 +1100
> From: Algis Kabaila <akabaila at pcug.org.au>
> Subject: Re: [PyQt] How to write a GUI interface for a set of Python
>        programs?
> To: pyqt at riverbankcomputing.com
> Cc: Andreas Pakulat <apaku at gmx.de>
> Message-ID: <200801281455.45268.akabaila at pcug.org.au>
> Content-Type: text/plain;  charset="iso-8859-1"
>
> Andreas,
>
> Many thanks for your prompt answer.  I use openSUSE 10.3 and thought I
> already
> had Qt4 installed.  Looking at the Yast package list, it would seem that
> this
> is so.  I do not remember how I installed the QtDesigner - I don't think
> that
> it came in a suse rpm package, as yast does not show it.
>
> I was wondering at the version number of my QtDesigner (3.3.8). Can I
> assume
> that it should be 4.4.x if Qt4 is used?
>
> I confess to have been wondering at the strange numbering of QtDesigner,
> but
> concluded, evidently quite wrongly - and stupidly - that it must be
> separate
> numbers from the Qt version.
>
> Ah well, write it down to old age...
>
> Thanks again,
>
> Al.
>
> On Mon, 28 Jan 2008 09:55:26 Andreas Pakulat wrote:
> > On 28.01.08 09:21:20, Algis Kabaila wrote:
> > > On Mon, 28 Jan 2008 07:11:21I another thread Hans-Peter Jansen wrote:
> > > > Am Sonntag, 27. Januar 2008 schrieb Ryen Lee:
> > > > > > > Hi everybody! I am a newbie for PyQT.Now I am write a simple
> > > > > > > programm
> > >
> > > [...]
> > > The above sentence from another thread describes well my current
> status.
> > >
> > > In the last few years I wrote a series of programs in Python for
> > > Structural Analysis for Engineering structures.  IMHO, Python is a
> great
> > > teaching language that enables one to expose the basic principles of
> > > programming without having to go into extraneous details.
> > >
> > > Currently those programs lack GUI.  I would like to write GUI with a
> > > minimum need to substantially change my extant Python programs and a
> > > minimum "immersion" into yet another computer language (I am 83 and
> have
> > > learned many languages - computer since the valve computer days as
> well
> > > as human - in my long and varied life).
> > >
> > > PyQt interface looks pretty, it is an integral part of KDE, so it
> seems
> > > like the right candidate for my objectives.
> > >
> > > Is it possible to create a GUI with QtDesigner and "assemble" it into
> > > PyQt from the *.ui files and then outside of the QtDesigner call
> extant
> > > Python programs?  Or is that an impossible dream?
> >
> > Thats quite easy using a python-written class that uses the .ui file to
> > setup the GUI.
> >
> > > If that is possible, how can I achieve that aim with the latest (?)
> > > QtDesigner version 3.3.8?
> >
> > I suggest to look into PyQt4 instead, Qt 3.3 is not maintained anymore
> > by TT (maybe for important security fixes) and thus doesn't get updates
> > anymore. PyQt4/Qt4 is the current state of the art and it still ships
> > with designer, though the actual use of the .ui files has changed a bit.
> >
> > Andreas
>
>
>
> --
> Algis Kabaila (Dr)
> http://akabaila.pcug.org.au/StructuralAnalysis/
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 28 Jan 2008 14:59:42 +1030
> From: "Daniel O'Connor" <darius at dons.net.au>
> Subject: [PyQt] Qt designer & KDE
> To: pyqt at riverbankcomputing.com
> Message-ID: <200801281459.49446.darius at dons.net.au>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
> This might be OT but any answers would be greatly appreciated..
>
> What is the canonical way to build a KDE application using a GUI
> designer? I've tried both Qt designer and kdevdesigner but they both
> generate QMainWindow classes and I can't see how to change this (baring
> editing the code pyuic generates which seems like a kludge)
>
> Thanks.
>
> --
> Daniel O'Connor software and network engineer
> for Genesis Software - http://www.gsoft.com.au
> "The nice thing about standards is that there
> are so many of them to choose from."
>  -- Andrew Tanenbaum
> GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 187 bytes
> Desc: This is a digitally signed message part.
> Url :
> http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080128/cbf685f2/attachment-0001.bin
>
> ------------------------------
>
> Message: 8
> Date: Mon, 28 Jan 2008 07:38:13 +0100
> From: Andreas Pakulat <apaku at gmx.de>
> Subject: Re: [PyQt] How to write a GUI interface for a set of Python
>        programs?
> To: pyqt at riverbankcomputing.com
> Message-ID: <20080128063813.GA22280 at morpheus.apaku.dnsalias.org>
> Content-Type: text/plain; charset=us-ascii
>
> On 28.01.08 14:55:45, Algis Kabaila wrote:
> > Andreas,
> >
> > Many thanks for your prompt answer.  I use openSUSE 10.3 and thought I
> already
> > had Qt4 installed.  Looking at the Yast package list, it would seem that
> this
> > is so.  I do not remember how I installed the QtDesigner - I don't think
> that
> > it came in a suse rpm package, as yast does not show it.
> >
> > I was wondering at the version number of my QtDesigner (3.3.8). Can I
> assume
> > that it should be 4.4.x if Qt4 is used?
>
> It should probably be 4.3.x currently (4.4 has not yet seen a Beta
> release). I don't know how SuSE packages Qt, but usually the various
> bits are split across multiple packages, i.e. one for the libraries, one
> for the header files and another one for developer apps like designer.
> In Debian there's even a separate package for each designer version
> (qt3-designer vs. qt4-designer).
>
> A search in Yast should help finding it, in any way I'm pretty sure SuSE
> does ship the Qt4 version of designer, its part of the Qt4 sources which
> they use to build the packages.
>
> > I confess to have been wondering at the strange numbering of QtDesigner,
> but
> > concluded, evidently quite wrongly - and stupidly - that it must be
> separate
> > numbers from the Qt version.
>
> No, designer uses teh same versioning numbers as Qt itself, only the
> qmake buildtool has its own version numbers.
>
> Andreas
>
> --
> You have a strong appeal for members of your own sex.
>
>
> ------------------------------
>
> Message: 9
> Date: Mon, 28 Jan 2008 07:40:29 +0100
> From: Andreas Pakulat <apaku at gmx.de>
> Subject: Re: [PyQt] Qt designer & KDE
> To: pyqt at riverbankcomputing.com
> Message-ID: <20080128064029.GB22280 at morpheus.apaku.dnsalias.org>
> Content-Type: text/plain; charset=us-ascii
>
> On 28.01.08 14:59:42, Daniel O'Connor wrote:
> > This might be OT but any answers would be greatly appreciated..
> >
> > What is the canonical way to build a KDE application using a GUI
> > designer? I've tried both Qt designer and kdevdesigner but they both
> > generate QMainWindow classes and I can't see how to change this (baring
> > editing the code pyuic generates which seems like a kludge)
>
> Use Qt4/KDE4 or rewrite the .ui file with an editor. In Qt4/KDE4 you can
> apply the .ui file to a KMainWindow instead of a QMainWindow.
>
> I don't know how good that works currently, but I did have a KMainWindow
> template created from an empty QMainWindow template. Just put it under
> $HOME/.designer/templates and it will show up.
>
> Andreas
>
> --
> You will be recognized and honored as a community leader.
>
>
> ------------------------------
>
> _______________________________________________
> PyQt mailing list
> PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
> End of PyQt Digest, Vol 42, Issue 50
> ************************************
>



-- 
"Linux: Because rebooting is for adding new hardware"

Linux User #399138
My P2P Client - http://www.frostwire.com
My Infinite Storage Page - http://www.mybloop.com
My Podcast - http://www.wedoit4you.com
My Blog - http://www.gubatron.com/blog
My Twitter - http://www.twitter.com/gubatron
My Skype - gubatron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080128/67d907bf/attachment-0001.html


More information about the PyQt mailing list