KPanelApplet using Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Varun Hiremath

    #1

    KPanelApplet using Python

    Hi,
    I was wondering if there is any way to make KDE PanelApplets using Python. I have made a small window using Qt, kdeui nad kdecore libs. Now I want to add it to the KDE kicker. Can I get any help regarding this matter.

    Thank you.

    --
    -----------------------------------------------
    Varun Hiremath
    461, Jamuna Hostel
    IIT Madras,
    Chennai - 600 036
    mob : +919840299732
    -----------------------------------------------
    My Webpage : http://www.ae.iitm.ac.in/~ae03b032
    -----------------------------------------------
  • wjzrules@gmail.com

    #2
    Re: KPanelApplet using Python

    I am not a Python expert, but I am using KDE on my workstation at home
    and a big Python fan ;)

    A couple of days ago I was thinking the same and found how to create
    systray apps for Windows!
    You can make this kind of apps with wxPython.

    When I was at home and behind my KDE desktop I tried the Windows code
    and it worked flawlessly in KDE. It was integrating into the kicker
    without problems.

    This was the thread that helped me out:


    Try to play with the code and you will see it will work :)

    Comment

    • richmoore44@gmail.com

      #3
      Re: KPanelApplet using Python

      Another way to do it is to use ksystraycmd which is included with your
      KDE. Some usage info is covered in my tutorial:


      Rich.

      Comment

      • David Boddie

        #4
        Re: KPanelApplet using Python

        Varun Hiremath wrote:
        [color=blue]
        > I was wondering if there is any way to make KDE PanelApplets
        > using Python. I have made a small window using Qt, kdeui nad
        > kdecore libs. Now I want to add it to the KDE kicker. Can I
        > get any help regarding this matter.[/color]

        The other responses in this thread have covered solutions that use
        the system tray, and you may want to try something like that with
        the KSystemTray class in kdeui. It's available in PyKDE, so you
        shouldn't have any trouble adding new items to kicker that way.

        However, you asked specifically about Panel Applets. Unfortunately,
        they are a lot more difficult to implement in Python because you
        need to write a library in C++ to load them. Some of us in the
        PyQt/PyKDE community did some work towards that, and had working
        applets but, as far as I know, they don't work with recent releases.

        You might get some additional help or advice about this if you try
        mailing the PyKDE list:



        Good luck!

        David

        Comment

        • Varun Hiremath

          #5
          Re: KPanelApplet using Python

          On Fri, 24 Feb, 2006 at 05:51:55AM -0800, richmoore44@gma il.com wrote:
          I want to make a PanelApplet and not a systray application. I tried KSystemTray and it works flawlessly but I want to add a widget to the taskbar like knews or kweather. I am trying to use the pyKDE's KPanelApplet class but I don't know exactly how to use it. I need some help regarding this.

          Thank You

          --
          -----------------------------------------------
          Varun Hiremath
          461, Jamuna Hostel
          IIT Madras,
          Chennai - 600 036
          mob : +919840299732
          -----------------------------------------------
          My Webpage : http://www.ae.iitm.ac.in/~ae03b032
          -----------------------------------------------

          Comment

          • Varun Hiremath

            #6
            Re: KPanelApplet using Python

            On Fri, 24 Feb, 2006 at 09:55:59AM -0800, David Boddie wrote:[color=blue]
            > Varun Hiremath wrote:
            >[color=green]
            > > I was wondering if there is any way to make KDE PanelApplets
            > > using Python. I have made a small window using Qt, kdeui nad
            > > kdecore libs. Now I want to add it to the KDE kicker. Can I
            > > get any help regarding this matter.[/color]
            >
            > The other responses in this thread have covered solutions that use
            > the system tray, and you may want to try something like that with
            > the KSystemTray class in kdeui. It's available in PyKDE, so you
            > shouldn't have any trouble adding new items to kicker that way.
            >
            > However, you asked specifically about Panel Applets. Unfortunately,
            > they are a lot more difficult to implement in Python because you
            > need to write a library in C++ to load them. Some of us in the
            > PyQt/PyKDE community did some work towards that, and had working
            > applets but, as far as I know, they don't work with recent releases.
            >
            > You might get some additional help or advice about this if you try
            > mailing the PyKDE list:
            >
            > http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
            >
            > Good luck!
            >
            > David[/color]

            Hi,
            Actually I want to fetch some text from a HTML Page and then display it using KPanelApplet.I am using BeautifulSoup for Parsing the HTML Page which I can do easily in Python . Now I don't want to switch to C++ because Parsing there will be tough. Can you suggest me some other way to do this.

            Thank You

            [color=blue]
            >
            > --
            > http://mail.python.org/mailman/listinfo/python-list[/color]

            --
            -----------------------------------------------
            Varun Hiremath
            461, Jamuna Hostel
            IIT Madras,
            Chennai - 600 036
            mob : +919840299732
            -----------------------------------------------
            My Webpage : http://www.ae.iitm.ac.in/~ae03b032
            -----------------------------------------------

            Comment

            Working...