
pyRad
Source (link to git-repo or to original if based on someone elses unmodified work):
installation:
- Get Python
- call `easy_install pyRadKDE` in any shell.
- Test it by calling `pyrad.py`.
- This should automatically pull in pyKDE4
- Visual icon selection requires the kdialog program (a standard part of KDE).
* For a "live" version, just clone [the pyrad Mercurial repo](http://bitbucket.org/ArneBab/pyrad) and let KDE run "path/to/repo/pyrad.py" at startup. You can stop a running pyrad via pyrad.py --quit. pyrad.py --help gives usage instructions.
In Gentoo: Just call `emerge -a kde-misc/pyrad`
setup:
- call pyrad.py. You can now use Alt-F6 or Meta-F6 to show the wheel.
- Add "/usr/bin/pyrad.py" as script to your autostart (systemsettings->advanced->autostart)
- Add the mouse gesture to call D-Bus: Program: org.kde.pyRad ; Object: /MainApplication ; Function: newInstance
- Alternately set the gesture to call the command "dbus-send --type=method_call --dest=org.kde.pyRad /MainApplication org.kde.KUniqueApplication.newInstance"
- customize the menu by editing the file "~/.pyradrc" or right-clicking items.
usage:
- Just use your gesture to call up the command wheel when you want to call one of your included programs.
- Left-click the program to start it. You can also press the key shown in the programs tooltip for the same effect.
- Right-click an item to edit it. Middle-click an item to add a new one after it (clockwise).
- Make folders by clicking on folder inside the edit dialog.
Actions are simply the commands you'd use on the commandline (no shell scripting though).
- call "pyrad.py --quit" to shutdown the process in the background. "pyrad.py --help" shows the usage. "pyrad.py --daemon" starts pyRad without showing the GUI.
You can find additional Information on http://pypi.python.org/pypi/pyRadKDE/ and http://draketo.de/light/english/pyrad
pyRad 0.7.1
- Select icon graphically via kdialog.
pyRad 0.5
- Added a config dialog with flattr.
pyRad 0.4.4
- Icon Editor: show a preview of the icon.
- Icon Editor: Added a delete and a folder.
- Register Alt-F6 and Meta-F6 als global shortcuts.
pyRad 0.4.2
- Improved the --help output.
- Improved the tooltips for folders.
pyRad 0.4
- Added keyboard shortcuts for all items and hiding via the escape key.
pyRad 0.3.2
- Added --daemon argument to start pyRad without showing the wheel.
pyRad 0.3
- Largescale rewrite in the battle for startup performance. It's now a KUniqueApplication and after the first run, subsequent runs only call the already running (but hidden) instance. Still the imports take the major share of the startup time.
- New command scheme: Right-click always edits the item, middle click adds a new item after the clicked one.
- Items are arranged clockwise.
pyRad 0.2
- Right-click on an item opens an edit dialog.
- Changes are saved directly to the .pyradrc
pyRad 0.1.1
- moved the Rad class into a seperate file (rad.py) - same performance but cleaner.
- added a version header to the .pyradrc file, so it will be possible to update it transparently when changes should be necessary.
pyRad 0.1
- Initial version.
Ratings & Comments
24 Comments
How about updating this entry? :)
pyRad did not change much: It keeps working and is an integral part of my own workflow. Is there something missing here?
…well, it did not change much since 0.4.4 - I’m not sure at which version it was in 2012. But still thanks for the prodding :)
during the setup/install there is a connection made to 207.223.240.181 (bitbucket?) and it appears a file "ssl.pyc) is fetched and installed in /usr/lib/python2.6. Why is this necessary and to what purpose? this is not described in any information accompanying the package.
I assume it is pulled in by some dependencies, for example PyQt4. easy_install gets you the package along with its dependencies. I only specify which packages are needed (PyQt4 and PyKDE4). You can check that in http://bitbucket.org/ArneBab/pyrad/src/tip/setup.py#cl-78 It could be that setuptools checks the BitBucket website (http://bitbucket.org/ArneBab/pyrad). I hope you enjoy pyrad! It became an essential part of my own workflow :)
i don't find your explanation plausible in any way. first, this applet phones home every time you start it to: 207.223.240.181 or 88.198.69.151 therefore "setuptools" is not the culprit for initiating a outbound connection. as i mentioned before, the file ssl.pyc was fetched during the install of pyRad and maybe it's necessary just to use easy_install, but i can't imagine why pyRad would need ssl capabilities. i don't dabble in python-world, but things have to make sense. So, my feeling as to the merit of your applet diminished completely... IF it is necessary for this code to phone home, it should be spelled out in the information you give with the download... otherwise it's just malware.
That is very strange… I added nothing which could access these URLs. The only access into the web I do is when you click the flattr-Button in the config pane (right-click the center). And that opens your webbrowser. Which program / command do you use for tracing it? (I need it to track down the access) Can you use the version from the Mercurial repository, so we can find the reason for the bug together?
Mercurial Repository: http://bitbucket.org/ArneBab/pyrad/overview Just clone and run python pyrad.py --quit; python pyrad.py (the first stops your running pyrad, the second starts the one from the repo)
To doublecheck what I write, you can simply check the code: http://bitbucket.org/ArneBab/pyrad/src/tip/rad.py http://bitbucket.org/ArneBab/pyrad/src/tip/pyrad.py (pyrad.py calls rad.py for the GUI stuff) What’s very strange is that the second IP seems to be connected to opensuse-community.org (I just googled for the IP)
And besides: There is no reason at all why the script should phone home (at least none I wrote). Idea: Could you check if this one also phones home on your box? http://bitbucket.org/ArneBab/kembed-emacs/src/tip/qxembed-emacs.py If yes, it would be a PyQt4 thing. If no it could be a PyKDE4 thing or a setuptools-thing – or be connected to how your distro handles installed python programs. That program is just 39 lines, so it should be easy enough for you to doublecheck that I didn’t add any crap in it.
How do you install it? (should have asked that from the start)
i used easy_install as is advised in the instructions after dropping pyrad.py in /usr/local/bin. i'll investigate this more thoroughly soon and advise, but your sample script created a window perfectly without generating any outbound connections. p.s. your comment about the 88.* ip may indicate some other activity which i'm not aware of, but in a weeks time there were exactly 3 outbound connections made by python, one i'm sure was during the easy_install and i'll research the others.
You could test this again by running easy_install pyRadKDE. I just uploaded a new version (0.5.3), so this should generate some activity. If for that version a connection should go to a server which is connected to the domain draketo.de, then it’s likely that easy_install tests the homepage address in setup.py.
Did you find out more?
what happens if you just use apt-get install PyQt-x11-gpl-4.7 ? or apt-get install python-kde4 ? Did you intstall some stuff by hand (it looks strage, that sip uses a newer API than pykde, without synaptic complaining.
I am a beginner. I use Kubuntu 9.10. I do not understand how to install pyRadKDE. In Setup what it means ... Add a mouse gesture for "pyrad.py": go into KDE systemsettings -> keyboard shortcuts -> add a gesture with the action "pyrad.py" ...
It means “open the program systemsettings, then select the item keyboart shortcuts and add a shortcut - either a gesture or a key-combination" Before you can do that, you have to download pyrad.py and install PyKDE4 (the second should be `apt-get install pykde4` or so).
I tried the installation, but I lost somewhere. My steps I downloaded pyRadKDE 0.3.3. Extract pyRadKDE-0.3.3.tar.gz. In terminal put - python pyrad.py Traceback (most recent call last): File "pyrad.py", line 114, in <module> from PyKDE4.kdecore import KCmdLineArgs, KCmdLineOptions RuntimeError: the sip module implements API v7.0 but the PyKDE4.kdecore module requires API v6.0 ??? From where I download http://pypi.python.org/pypi/pyRadKDE says that the pyRadKDE request PyQt4, PyKDE4. Problem with PyQt4. Extract PyQt-x11-gpl-4.7.tar.gz python configure.py Error: Make sure you have a working Qt v4 qmake on your PATH or use the -q argument to explicitly specify a working Qt v4 qmake. ??? I do not know what to do and what is what, how to install ...
The error means that your ‘sip’ is newer than your PyKDE - you need an older sip. Why don't you simply install PyKDE from your package manager? There all this hassle schould be taken care of (I yust used `emerge pykde4` on Gentoo). If you can't do that, you need to see if you can get an older version of sip. Or get a newer version of PyKDE4. Also you might need to intstall qmake. (Sorry for the heavy dependencies - it's the only way to access KDE from Python, and most systems with KDE4 should have them preinstalled)
What just came to mind: Do you have KDE 4?
I think Kubuntu 9.10 is with KDE4. With synaptic I install all gmake http://img189.imageshack.us/img189/8616/qmake.png pykde http://img651.imageshack.us/img651/2880/pykde.png I tried to install PyQt4 PyQt-x11-gpl-4.7$ python configure.py Determining the layout of your Qt installation... Error: Failed to determine the layout of your Qt installation. Try again using the --verbose flag to see more detail about the problem. pyRadKDE-0.3.3$ python pyrad.py Traceback (most recent call last): File "pyrad.py", line 114, in <module> from PyKDE4.kdecore import KCmdLineArgs, KCmdLineOptions RuntimeError: the sip module implements API v7.0 but the PyKDE4.kdecore module requires API v6.0 I'll probably have to leave this for later, because I do not know what I was doing. With Linux I started this year, so I'm noob. thanks for the attempt. Regards
This makes one part clear: Your PyQt4 intstallation failed. Could you try to get PyQt-x11-gpl-4.6 ? Best wishes, Arne PS: Please feel free to ask when something is unclear. We all started as noobs :)
I tried PyQt-x11-gpl-4.6.2 - same thing. PyQt-x11-gpl-4.6.2$ python configure.py Determining the layout of your Qt installation... Error: Make sure you have a working Qt v4 qmake on your PATH or use the -q argument to explicitly specify a working Qt v4 qmake.
Sorry for taking so long — I’m at the limit of my install debugging with that :( You might have to ask in the Kubuntu forums how to install PyQt3.