-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login



Sponsoring


-
- Content .- Fans (2) .- Knowledge Base  . 

panel-dictionary

   0.3.2  

Plasmoid Script

Score 65%
panel-dictionary
zoom


Link:  Link
Minimum required   KDE 4.x
Downloads:  208
Submitted:  Aug 22 2009
Updated:  Nov 10 2010

Description:

Panel-dictionary is a dictionary plasmoid in the spirit of KDE 3's kdict panel applet. It gives you a text box in the panel in which you can type a word and get its definition in a dialog.

Panel-dictionary gives you a choice of backends, each with different capabilities.
  • Plasma dict dataengine

  • Command line dict client

  • Python-dictclient


  • Using the command line dict-client, it will use whatever you've set up in ~/.dictrc or /etc/dictd/dict.conf. Using the python-dictclient, you can specify a server to use.

    This is my first plasmoid, written in Python; it probably needs a lot of work!

    KNOWN ISSUES:
  • dict dataengine backend is just lacking. Not really much I can do about this.

  • background sizing issues when moved from the panel

  • Unicode only works with the dict client backend


  • If you want to contribute, you can check out the code at github:
    https://github.com/alandmoore/panel-dictionary-plasmoid




    Changelog:

    Version 0.3.2 2009-12-25
  • Added option to force definitions black-on-white.

  • Fixed Unicode support for dict-client backend (only) -- thanks kozakmamay
    Version 0.3.1 2009-08-31
    [li]Fixed sizing issue when used in panel

  • Version 0.3 2009-08-27
  • Redesigned definition view with a tabbed interface

  • Matched words can be clicked to look them up

  • Removed useless blank context menu in combobox

  • Version 0.2 2009-08-25
  • Appearance configuration allows changing size of combobox and color of text

  • Improvements to output of dict commandline backend

  • dict command line backend allows server setting

  • added icons to config dialog


  • Version 0.1.1 - 2009-08-23
  • Fixed focus bug (thanks emdek!!!)


  • Version 0.1 - 2009-08-21

  • First release



  • LicenseGPL
    (panel-dictonary.plasmoid)
    Send to a friend
    Subscribe
    Other  Artwork  from admoore
    Report inappropriate content



    -

     Panel and focus

     
     by Emdek on: Aug 22 2009
     
    Score 50%

    Quote:
    combo box has a hard time acquiring and keeping focus when in the panel, especially when there is a maximized application on screen.


    You could try mine method to give it (embedded line edit) focus, you can find it in Run Command applet.
    I'm not sure if it is easy to port it to Python, but you can at least try. ;-)


    Life is unfair...
    Reply to this

    -

     Re: Panel and focus

     
     by admoore on: Aug 22 2009
     
    Score 50%

    Thanks! I looked a lot at the RunCommand source, but I couldn't figure out exactly what what going on there. Did you just basically have to custom-build the combobox?

    I'll dig into it a little more and see if I can understand it.


    Reply to this

    -

     Re: Re: Panel and focus

     
     by Emdek on: Aug 22 2009
     
    Score 50%

    No (this if ror other reason), look at focusWidget() method. ;-)


    Life is unfair...
    Reply to this

    -

     Re: Re: Re: Panel and focus

     
     by admoore on: Aug 23 2009
     
    Score 50%

    Thanks. I checked it out, and read your post to plasma-devel, but I am not sure I get what's going on yet.

    Where does the scene() method come from (what class/library)? I couldn't find it in the API reference.


    Reply to this

    -

     Re: Re: Re: Re: Panel and focus

     
     by admoore on: Aug 23 2009
     
    Score 50%

    Ok, actually after some digging I managed to get your function ported to python, and (yay!) it works! ... sort of.

    It only gives focus to the widget if I click the area AROUND the combobox widget. If there was a signal that I could connect when the combobox is clicked, that would work. But according to all I can find, there isn't :-(.

    Short of subclassing QlineEdit and overriding its mousePressEvent, I'm not sure what else to do.


    Reply to this

    -

     Re: Re: Re: Re: Re: Panel and focus

     
     by Emdek on: Aug 23 2009
     
    Score 50%

    There is no event filter available in bindings?


    Life is unfair...
    Reply to this

    -

     Re: Re: Re: Re: Re: Re: Panel and focus

     
     by admoore on: Aug 23 2009
     
    Score 50%

    erm... maybe. I'll have to look into that. I'm pretty new to this API.



    -
    .

     Google

     
     by downdiagonal on: Aug 30 2009
     
    Score 50%

    I've written a small python module that gets definitions using Google's "define: word" feature. You might find it useful.

    http://pastebin.com/f53f35361


    Reply to this

    -

     Re: Google

     
     by admoore on: Aug 31 2009
     
    Score 50%

    Thanks for the info, I'll consider it.


    Reply to this

    -
    .

     broken charset

     
     by gravy on: Sep 6 2009
     
    Score 50%

    Unicode (UTF-8) output is broken http://img136.imageshack.us/img136/3834/90375194.png


    Reply to this

    -

     Re: broken charset

     
     by admoore on: Sep 6 2009
     
    Score 50%

    What backend are you using?


    Reply to this

    -

     Re: Re: broken charset

     
     by gravy on: Sep 7 2009
     
    Score 50%

    dict client
    dict 1.11.1/rf on Linux 2.6.29-tuxonice-r3
    dictd on localhost and dictd.xdsl.by give same result
    python-2.6


    Reply to this

    -

     Re: broken charset

     
     by kozakmamay on: Dec 23 2009
     
    Score 50%

    Change line 183 of main.py from
    line = defs.pop(0);
    to
    line = unicode(defs.pop(0), "utf-8")


    Reply to this

    -

     Re: Re: broken charset

     
     by admoore on: Dec 26 2009
     
    Score 50%

    Thanks for the suggestion, I tried this but it doesn't seem to fix the problem. Did it work for you? The plasmoid still give me:

    UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 14: ordinal not in range(128)

    Not sure where or why this is happening.


    Reply to this

    -

     Re: Re: Re: broken charset

     
     by admoore on: Dec 26 2009
     
    Score 50%

    wait, never mind; adding it to line 178 as well fixes unicode for the dict client backend.

    Unicode still crashes the python-dict backend, it looks like a shortcoming of the library itself.


    Reply to this

    Add commentBack






    -

    -
    Do you like or dislike Ubuntu Unity?
     Yes, unity is alien technology!
     It is less confusing than Gnome 3 default, shell.
     Granny thinks it is much more usable than Gnome 2
     Canonical is embarrasing itself with this split project
     Gnome 3 default shell is much better
     I dislike Unity, Gnome 3 default shell is alien technology!
     None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

    resultmore




     
     
     Who we are
    Contact
    More about us
    Frequently Asked Questions
    Register
    Twitter
    Blog
    Explore
    Artwork
    Jobs
    Knowledge
    Events
    People
    Updates on identi.ca
    Updates on Twitter
    Facebook App
    Content RSS   
    News RSS   
    Discussion RSS   
    Events RSS   

    Participate
    Groups
    Forum
    Add Artwork
    Public API
    About KDE-Look.org
    Legal Notice
    Spreadshirt Shop
    CafePress Shop
    Advertising
    Sponsor us
    Report Abuse
     

    Copyright 2001-2014 KDE-Look.org Team  
    All rights reserved. KDE-Look.org is not liable for any content or goods on this site.
    All contributors are responsible for the lawfulness of their uploads.
    KDE and K Desktop Environment are trademarks of KDE e.V.