[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: SOLVED: Re: plasmascript.Applet sub-classing (Python)
From: Thomas Olsen <tanghus () gmail ! com>
Date: 2010-06-25 20:12:40
Message-ID: 201006252212.41139.tanghus () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Friday 25 June 2010 11:54:59 Thomas Olsen wrote:
> Hi
>
> I have a couple of scripted Plasmoids which share a lot of code, so I
> decided 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?
I'm getting a bad habit of answering my own questions after seeing thats it's
totally obvious :-D
I was testing with plasmoidviewer but I also had the Widget on one of my
desktops, so of course both fired off a notification - duh...
> [1]
> http://code.google.com/p/google-translator/source/browse/trunk/google-tran
> slator/contents/code/base.py [2]
> http://code.google.com/p/google-translator/source/browse/trunk/google-tran
> slator/contents/code/main.py
>
> PS: If you see some obvious bad coding I would really appreciate to know
> :-)
I'd still like a second pair of eyes on the code if anyone's got the time ;-)
--
Best Regards / Med venlig hilsen
Thomas Olsen
["signature.asc" (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic