[PyKDE] Seperating logic code from gui code?
shlomme at gmx.net
Thu Dec 15 21:54:27 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Arthur Pemberton schrieb:
> 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?
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
Torsten Marek <shlomme at gmx.net>
ID: A244C858 -- FP: 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the PyQt