|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
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:
Why couldn't they just say that in the freakin tutorial !?! Quote:
Thanx for the help. |
|
#4
|
||||
|
||||
|
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 ![]() |
|
#5
|
|||
|
|||
|
Quote:
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 |
|
#6
|
||||
|
||||
|
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)
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Anyone know an easy pyQT tutorial ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|