Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 22nd, 2003, 07:47 AM
lazy_yogi lazy_yogi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 325 lazy_yogi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 58 m 36 sec
Reputation Power: 6
Anyone know an easy pyQT tutorial ?

I'm trying to get my head around GUI development in python .. using pyQT. I'm finding the recomended tutorial (http://www.opendocspublishing.com/pyqt/) incredibly difficult and haven't found another one.

Any good tutorials on GUI programming in python that any has actually used before.

Also, does anyone know of a forum that is as active for python as this one is for php/mysql

Cheers

Reply With Quote
  #2  
Old March 22nd, 2003, 01:10 PM
telex4's Avatar
telex4 telex4 is offline
Wacky hack
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2001
Location: London, England
Posts: 512 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 29 sec
Reputation Power: 8
I spent a long, long time looking, and I'm afraid I didn't find any! If you haven't already done so, I'd recommend trying to learn PyTk first, as it's easier to learn and there are more tutorials about for it. Once you get the hang of it, try moving over to PyQt, and it should make more sense.

If you have, then first of all open Qt's designer program ("designer"), and open a .ui file in the source of another Qt-based program (most apps come with the .ui files, just search your hard drive for some), and have a look at how Qt works with its widgets, and also look at the slots and connections systems. Basically, you need to connect each action (like clicking on a button) to a slot, which will be the function you'll want to call on the event.

Then it's just a matter of diving in! You can always have a look at my PyQt app, which isn't particularly complex: http://www.tomchance.uklinux.net/pr.../quickrip.shtml

Reply With Quote
  #3  
Old March 22nd, 2003, 05:20 PM
lazy_yogi lazy_yogi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 325 lazy_yogi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 58 m 36 sec
Reputation Power: 6
Your examples are a huge help ... and incredibly well written

We're learning python in one of my uni subjects and so will be taught *some* of the basics of pyQT, but not alot. But we will be starting it soon and so don't really have time to learn pyTK first.

btw ... is pyTK as useful as pyQT or just simpler ?


Quote:
Basically, you need to connect each action (like clicking on a button) to a slot, which will be the function you'll want to call on the event.
ahhhhhhh... that's what they mean by a slot.
Why couldn't they just say that in the freakin tutorial !?!


Quote:
Then it's just a matter of diving in!
Yea ... trying to, but getting a handle on the basics is needed and getting that seems to be a hurdle atm.

Thanx for the help.

Reply With Quote
  #4  
Old March 23rd, 2003, 05:22 AM
telex4's Avatar
telex4 telex4 is offline
Wacky hack
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2001
Location: London, England
Posts: 512 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 29 sec
Reputation Power: 8
PyTk is pretty useful, but it's not as advanced ad PyQt, so yeah, easier to learn but not as fun or useful. Mind you, if you want to write an app that everyone can easily use, PyTk is great because it comes as standard with most Python distributions.

Y'know I asked the author of that tutorial why he didn't explain things in a more simple fashion, and he (quite fairly) said: why don't you write your own? Well I'm far too busy with Uni and NewToLinux (url below), but if you wanted, you could always write an introductoy tutorial to help others like you when you're done

Reply With Quote
  #5  
Old March 23rd, 2003, 05:51 AM
lazy_yogi lazy_yogi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 325 lazy_yogi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 58 m 36 sec
Reputation Power: 6
Quote:
if you wanted, you could always write an introductoy tutorial to help others like you when you're done


yea .. wouln't mind doin it .. assuming I actually get a decent understanding of it eventually. starting seems a huge challenge in itself.

Thanx for the info by the way

oh .. and one other thing ... if i get used to pyQT, would pyTK be easy to learn after that ? or is that different altogether ?

Cheers

Reply With Quote
  #6  
Old March 23rd, 2003, 09:03 AM
telex4's Avatar
telex4 telex4 is offline
Wacky hack
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2001
Location: London, England
Posts: 512 telex4 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 25 m 29 sec
Reputation Power: 8
It'd be much easier to learn than PyQt, because it's similar and also much more simple. But you will get infuriated having to hand code your GUI (as opposed to using designer qith Qt)

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Anyone know an easy pyQT tutorial ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway