[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: can buttons know what happens to programs they launch?
From:       Hans Chen <hanswchen () gmail ! com>
Date:       2012-02-07 20:12:59
Message-ID: CAFfzviB9EgFpnv+_YGzKXvYwvYehS1WLEp2b2zWcTp3D9D6dsQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


You may want to take a look at KProcess:
http://api.kde.org/4.x-api/kdelibs-apidocs/kdecore/html/classKProcess.html
For example, here's a Python plasmoid that uses it:
http://kde-look.org/content/show.php/Redshift+plasmoid?content=148737

With best regards,
Hans Chen

On Tue, Feb 7, 2012 at 20:06, Eric Mesa <ericsbinaryworld@gmail.com> wrote:

> In my plasmoid I have a button that launches a python program with certain
> arguments.  Is it possible for the button to know whether or not the
> application exited with an error?  And if so, is it possible to have it
> change colour based on that?
> --
> Eric Mesa
> http://about.me/ericmesa
> http://www.ericsbinaryworld.com
>
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel@kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>

[Attachment #5 (text/html)]

You may want to take a look at KProcess: <a \
href="http://api.kde.org/4.x-api/kdelibs-apidocs/kdecore/html/classKProcess.html">http \
://api.kde.org/4.x-api/kdelibs-apidocs/kdecore/html/classKProcess.html</a><br>For \
example, here&#39;s a Python plasmoid that uses it: <a \
href="http://kde-look.org/content/show.php/Redshift+plasmoid?content=148737">http://kde-look.org/content/show.php/Redshift+plasmoid?content=148737</a><br>


<br>With best regards,<br>Hans Chen<br><br><div class="gmail_quote">On Tue, Feb 7, \
2012 at 20:06, Eric Mesa <span dir="ltr">&lt;<a \
href="mailto:ericsbinaryworld@gmail.com">ericsbinaryworld@gmail.com</a>&gt;</span> \
wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">In my plasmoid I have a button that launches a python program \
with certain arguments.  Is it possible for the button to know whether or not the \
application exited with an error?  And if so, is it possible to have it change colour \
based on that?<span class="HOEnZb"><font color="#888888"><br clear="all">


--<br>Eric Mesa<div><a href="http://about.me/ericmesa" \
target="_blank">http://about.me/ericmesa</a><br><a \
href="http://www.ericsbinaryworld.com" \
target="_blank">http://www.ericsbinaryworld.com</a></div><br> \
</font></span><br>_______________________________________________<br> Plasma-devel \
mailing list<br> <a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" \
target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br> \
<br></blockquote></div><br>



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic