[PyKDE] Seperating logic code from gui code?
Torsten Marek
shlomme at gmx.net
Thu Dec 15 21:54:27 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Arthur Pemberton schrieb:
> Hello,
>
> I am new to Qt programming and PyQt. I am attempting to build a client for
> AllofMp3.com, I already have most of the logic code down. But now I want to
> build a GUI with PyQt. What rules should I follow to make the program
> useable in the console, but also with a GUI?
>
Hi,
well - try to put as much code as possible to a level where both clients can
share it. This may be difficult due to the difference between the main loops of
a GUI and a console program, but it should be possible still. Ideally, the GUI
programs should just be thin layers around your actual code. Not really much of
advice, rather than a rule of thumb.
Anyway, don't give it too much thought aforehand - just don't be afraid of
refactoring afterwards.
greetings
Torsten
- --
Torsten Marek <shlomme at gmx.net>
ID: A244C858 -- FP: 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858
Keyserver: subkeys.pgp.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDoeYTfMVFHqJEyFgRAiS9AKDR8qlkLprR/PgqybqLDtQdVVudJwCcDx07
synxP4dsfetuZagSGji366M=
=pHZ8
-----END PGP SIGNATURE-----
More information about the PyQt
mailing list