We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,521 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

learn pyqt

Hi every bod y
I am new in programming and I like to start with pyqt but I can not find anything for learning in internet please help me how how can I write program with gt designer
& when I make a form in qt how can it work(my English is very bad …yes?)
What is the difference between qy & pyqt?

8
Contributors
21
Replies
1 Year
Discussion Span
4 Years Ago
Last Updated
23
Views
136456
Newbie Poster
2 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

QT is a GUI (Graphics User Interface) toolkit and PyQT is the wrapper to make it work with the Python language. PyQT is not used much because of QT's inherent license problems. This might be the reason why there is little information on the internet.

If you are new to programming, I would stick with the Tkinter GUI toolkit that is part of the Python distribution. For more advanced GUI programming you can use wxPython. There are quite a number of Tkinter and wxPython examples in the snippet section on this forum.

vegaseat
DaniWeb's Hypocrite
Moderator
6,499 posts since Oct 2004
Reputation Points: 1,451
Solved Threads: 1,618
Skill Endorsements: 39

in my opinion, PyQt is very good gui toolkit. also i'm bad at english too but i try to read english books. according to me first learn python than pyqt. i advice you
Beginning Python: From Novice to Professional by Magnus Lie Hetland (Author)
Rapid GUI Programming with Python and Qt by Mark Summerfield (Author)

night_guard
Newbie Poster
3 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I am not debating the merits of QT or PyQT, I am making you aware of the license requirements for QT. Should you ever develop a product using QT, you will need to pay the QT folks. This is the main reason that QT is not very popular with the open source Python crowd.

vegaseat
DaniWeb's Hypocrite
Moderator
6,499 posts since Oct 2004
Reputation Points: 1,451
Solved Threads: 1,618
Skill Endorsements: 39

There are a few links to tutorials here. Qt seems to be the least documented of all the GUI toolkits for Python. http://www.python-eggs.org/?row=2

woooee
Posting Maven
2,717 posts since Dec 2006
Reputation Points: 827
Solved Threads: 780
Skill Endorsements: 9

I have not tried QT or Tkinter but I have tried wxPython. I learned a lot from the book WxPython in Action by Noel Rappin and Robin Dunn. wxPython has been great to work with. I have also heard good things about Tkinter as well.

David

davidjhay
Newbie Poster
12 posts since Mar 2007
Reputation Points: 10
Solved Threads: 6
Skill Endorsements: 0

I know that this thread is quite old now but in my understanding The Open Source Editions of Qt is freely available for the development of Open Source software governed by the GNU General Public License (GPL)
Thus if you write a PyQt app and you release the code under the same license there shouldn't be license problems. Am I right?

TheOneElectroni
Light Poster
27 posts since Jun 2008
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

I despised QT the first day I read their licence. If you need to be serious without Lic snags just go for wxpython. I dont despise TKinter nor undermine PyGTK. The reason is, I learned wxpython and became my best GUI toolkit. I have a poll there, it should help new comers which GUI toolkit many here prefer!

Stefano Mtangoo
Senior Poster
3,733 posts since Jun 2007
Reputation Points: 462
Solved Threads: 396
Skill Endorsements: 0

Can you explain me what's wrong with the open source licence if you plan to make a completely open source and non commercial application? I've no expertise in this field this is why I ask.
Thanks

TheOneElectroni
Light Poster
27 posts since Jun 2008
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

No, but from what I know you need to disclose your code. What If you want to code commercial app for somebody? Will he allow you to disclose it?

That licence isn't good compared to wxpy or TkInter. Why not getting to them??

Stefano Mtangoo
Senior Poster
3,733 posts since Jun 2007
Reputation Points: 462
Solved Threads: 396
Skill Endorsements: 0

Ok I understand your point.
However if my plan is to develop free open source application then there's no drawback in using Qt.
I have used Tkinter as first choice to develop an internal app for my company (no release then) and after having gone pretty far I got stuck by frustration in trying and finding workaround for some app's basic functions (one example is sending a content to the printer). Apart this you must admit that the graphics appeal is not that cool with Tkinter. I tried (very very briefly) wxpy before but I disliked the code approach. From what I heard (and maybe I'm wrong) Qt are the best on the scenario. I'm trying to learn and for now (very basic and empty window) I find the coding and the result pretty neat.

TheOneElectroni
Light Poster
27 posts since Jun 2008
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

who said wxpy is hard? Theonly draw back I find in wxpy contrasted to Tkinter is poor docs

Otherwise thing are easier lol:

Stefano Mtangoo
Senior Poster
3,733 posts since Jun 2007
Reputation Points: 462
Solved Threads: 396
Skill Endorsements: 0

As a matter of fact maybe it's just me being weird. Many say (everywhere) that Tkinter is difficult but I found the code nearly relaxing. On the contrary I found unpleasant the coding of wxpy.
Well I suppose I just need to give PyQt a try and then see what come out.
Thanks a lot for the good discussion dude.

TheOneElectroni
Light Poster
27 posts since Jun 2008
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

No, but from what I know you need to disclose your code.

Where did that come from? If you include open source code in your app, and you transmit it to third parties outside (of your business, home, etc), you have to include source __to_the_open_source_parts_of_the_code__ . Redhat, which is a company that "sells" open source software, they actually sell installation, service etc., for years used their own closed-source installation app to install open-source software. They did not publish the source code and were not required to because it was their own closed-source app. The way I understand Qt's license is "if you make money using Qt, then you owe Trolltech something in return", but again that is just my understanding.

woooee
Posting Maven
2,717 posts since Dec 2006
Reputation Points: 827
Solved Threads: 780
Skill Endorsements: 9

@woooee: that's also my understanding, as a matter of fact I think the deal it's quite honest: they provide a powerful tool for developing open source applications (thus helping open source world basically) but if one's intend to make money from the app then you must buy a commercial license. That seems to me a pretty healthy behaviour. If this is the case I don't see any big drawback in developing free open source applications with PyQt.
I got interested in this framework because it seems very powerful and neat to me. I run Kubuntu 8.10 with KDE4.1 which is developed in Qt and the result is really astonishing.

TheOneElectroni
Light Poster
27 posts since Jun 2008
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

Ok Go for it! All blessings but for me, I'll stick with my beautiful wxpython! lol:

Stefano Mtangoo
Senior Poster
3,733 posts since Jun 2007
Reputation Points: 462
Solved Threads: 396
Skill Endorsements: 0

Let us go back to the topic:
QT GUYS, PSE HELP PROVIDING LINKS FOR GUY TO LEARN
Anyway have you tried docs at pyQT web?

Stefano Mtangoo
Senior Poster
3,733 posts since Jun 2007
Reputation Points: 462
Solved Threads: 396
Skill Endorsements: 0

I found something on the web. It seems that there's not as much resourches as for Tkinter or WxPy (maybe for the commercial license issue) but I found these to start with:
http://diotavelli.net/PyQtWiki/Tutorials
http://www.ibm.com/developerworks/linux/library/l-qt/?ca=dgr-lnxw766PyQT#
http://www.commandprompt.com/community/pyqt
http://vizzzion.org/?id=pyqt
But there are surely much more on the subject.

TheOneElectroni
Light Poster
27 posts since Jun 2008
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

www.zetcode.com
Bodnar is good teacher. Read and will tell!

Stefano Mtangoo
Senior Poster
3,733 posts since Jun 2007
Reputation Points: 462
Solved Threads: 396
Skill Endorsements: 0

thank you dude.

TheOneElectroni
Light Poster
27 posts since Jun 2008
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.1353 seconds using 2.78MB