[PyKDE] Make '/keyPressEvent' listening?
apaku at gmx.de
Wed Oct 11 14:43:18 BST 2006
On 11.10.06 15:11:50, Johannes Graumann wrote:
> > Ok, stop right here. Throw away all code you have. Read and understand
> > the examples that come with PyQt4 and get a good book on Python/OO
> > programming. You're clearly lacking OO programming skills and Qt is
> > OO-only so you need them.
> > This is not meant offensive, I'm just telling you you won't be able to
> > resolve your problems unless you get a good idea about OOP (in Python).
> I learn best by working on something I actually want to get accomplished.
IMHO, this works if you have a basic knowledge about how to start, but it
seems to me you don't have that.
> If the triviality of my questions offends you,
It's not, this was really just meant to help you get the basics
> Just remember, that you learned this too sometimes and I bet most of it was from other people and their examples.
No, actually the basics of OOP I learned by studying 1 or 2 books about
Java and C++ and understanding the code-snippets they had. Only
afterwards I started to code the first applications.
Maybe you can start with walking through this tutorial:
Especially chapter 9 about classes. Then I'd suggest to find a PyQt4
example that is a bit similar to what you want to build and try to
modify it to do what you want.
If your life was a horse, you'd have to shoot it.
More information about the PyQt