From kde-devel Fri Jun 25 09:54:59 2010 From: Thomas Olsen Date: Fri, 25 Jun 2010 09:54:59 +0000 To: kde-devel Subject: plasmascript.Applet sub-classing (Python) Message-Id: <201006251155.00998.tanghus () gmail ! com> X-MARC-Message: https://marc.info/?l=kde-devel&m=127745975431189 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0934916586==" --===============0934916586== Content-Type: multipart/signed; boundary="nextPart5756697.hd5O4WLKp4"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit --nextPart5756697.hd5O4WLKp4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi I have a couple of scripted Plasmoids which share a lot of code, so I decid= ed to make a BasePlasmoid class [1] that they could inherit from. I'm testing it = in one of the Plasmoids [2] and everything seems to work OK. The only problem so far is that I have made some simple network monitoring in the base class which sends a notification if the network disconnects and after subclassing this notification gets send twice. I know I can be quite blind some times but I really think I have removed all duplicate code. Could someone share their eyes with me for a minute and have a look? [1] http://code.google.com/p/google-translator/source/browse/trunk/google-t= ranslator/contents/code/base.py [2] http://code.google.com/p/google-translator/source/browse/trunk/google-t= ranslator/contents/code/main.py PS: If you see some obvious bad coding I would really appreciate to know :-) =2D-=20 Best Regards / Med venlig hilsen Thomas Olsen --nextPart5756697.hd5O4WLKp4 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkwkfPQACgkQge+YkdGJAWguJAEA9gTSFYcGLSyc81v/FJGCUa/O rP/VJJlJ6QXHrsqR6qUBALm45U+5MAAgVJTbLJQkimTpMC5EFzTxYa5LjLie7YRF =fU3+ -----END PGP SIGNATURE----- --nextPart5756697.hd5O4WLKp4-- --===============0934916586== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0934916586==--