View previous topic :: View next topic |
Author |
Message |
Panda Apprentice
Joined: 31 Jul 2003 Posts: 223 Location: Cremona <=> Catania
|
Posted: Mon Oct 18, 2004 5:44 pm Post subject: transset GUI frontend |
|
|
Hi,
I wrote a little gui frontend to transset. Just few lines of python to avoid starting a terminal and type the command... for example I put it as an icon in the gnome panel.
You can find it at http://www.orson.it/~panda/blog/index.php?page=PyTransseTk
Byez |
|
Back to top |
|
|
leks n00b
Joined: 11 Oct 2004 Posts: 40
|
Posted: Tue Oct 26, 2004 11:21 am Post subject: |
|
|
great one, but i still hate the TK toolkit |
|
Back to top |
|
|
Panda Apprentice
Joined: 31 Jul 2003 Posts: 223 Location: Cremona <=> Catania
|
Posted: Tue Dec 07, 2004 7:13 pm Post subject: |
|
|
lakai wrote: | great one, but i still hate the TK toolkit | I hate it too... but i used it just to avoid dependencies for pyQT, pyGTK... thus Tkinter is a standard python library |
|
Back to top |
|
|
MrStaticVoid Tux's lil' helper
Joined: 25 Jul 2003 Posts: 114 Location: Maryland
|
Posted: Tue Dec 07, 2004 10:54 pm Post subject: |
|
|
I wrote a GTK2 version if anyone cares. I didn't spend much time on it and I couldn't test it because I use xorg 6.7. The package is large because I included the java-gtk jar in it, but you SHOULD have it anyway if you use Gnome, being that it is part of the official gnome bindings.
Just run:
java -jar jtranssetgtk.jar
It'll work great in a panel. The source is in the jar. It will also compile to a binary just fine with gcj.
http://userpages.umbc.edu/~jlee23/jtranssetgtk.jar
Honestly, though, I just did this to try out java-gnome, AND I LOVE IT! |
|
Back to top |
|
|
Panda Apprentice
Joined: 31 Jul 2003 Posts: 223 Location: Cremona <=> Catania
|
Posted: Wed Dec 08, 2004 12:30 am Post subject: |
|
|
Code: | trinhackria panda # java -jar jtranssetgtk.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: no gtkjava2.4 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at org.gnu.gtk.Gtk.<clinit>(Gtk.java:95)
at JTranssetApplet.main(JTranssetApplet.java:62)
trinhackria panda # emerge -p java-gtk
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] dev-util/indent-2.2.9-r1
[ebuild NS ] gnome-base/orbit-2.12.0
[ebuild N ] gnome-base/libbonobo-2.8.0
[ebuild N ] gnome-base/libgnomecanvas-2.8.0
[ebuild N ] gnome-base/gconf-2.8.0.1
[ebuild N ] gnome-base/gnome-mime-data-2.4.1
[ebuild N ] gnome-base/gnome-vfs-2.8.3-r1
[ebuild N ] gnome-base/libgnome-2.8.0
[ebuild N ] gnome-base/libbonoboui-2.8.0
[ebuild N ] gnome-base/gnome-keyring-0.4.0
[ebuild N ] gnome-base/libgnomeui-2.8.0
[ebuild N ] x11-themes/hicolor-icon-theme-0.5
[ebuild N ] x11-themes/gnome-icon-theme-2.8.0
[ebuild N ] x11-themes/gtk-engines-2.2.0
[ebuild N ] x11-themes/gnome-themes-2.8.0
[ebuild NS ] app-text/docbook-sgml-dtd-4.1-r2
[ebuild NS ] app-text/docbook-sgml-dtd-4.0-r2
[ebuild N ] dev-perl/SGMLSpm-1.03-r5
[ebuild N ] app-text/jadetex-3.13
[ebuild NS ] app-text/docbook-sgml-dtd-3.0-r2
[ebuild N ] app-text/docbook-xml-simple-dtd-4.1.2.4-r2
[ebuild N ] app-text/docbook-xml-simple-dtd-1.0
[ebuild N ] app-text/build-docbook-catalog-1.2
[ebuild N ] app-text/docbook-xsl-stylesheets-1.66.1
[ebuild N ] app-text/docbook-xml-dtd-4.3
[ebuild N ] app-text/docbook-sgml-utils-0.6.14
[ebuild N ] dev-java/java-gtk-0.8.3 | I am very curiuos to try you java-based one... but there are too many dependencies... |
|
Back to top |
|
|
justabssplyr Tux's lil' helper
Joined: 13 Apr 2004 Posts: 110
|
Posted: Wed Dec 08, 2004 1:09 am Post subject: |
|
|
Quote: | I am very curiuos to try you java-based one... but there are too many dependencies... |
thats because its a gnome program, not just java. |
|
Back to top |
|
|
MrStaticVoid Tux's lil' helper
Joined: 25 Jul 2003 Posts: 114 Location: Maryland
|
Posted: Wed Dec 08, 2004 1:48 am Post subject: |
|
|
Aww man, I thought that I would be able to work around that error for sure by including java-gtk in my jar. Oh well. I'll just remove it from the jar so it will be small, and just say that if you want to try it, emerge java-gnome. |
|
Back to top |
|
|
incabolocabus Apprentice
Joined: 24 Nov 2003 Posts: 232 Location: Fort Collins, CO
|
Posted: Fri Dec 10, 2004 7:44 pm Post subject: |
|
|
Heres a non-gui java program for transset. Runs fine under suns jdk1.5
Code: |
import java.awt.*;
import java.awt.event.*;
/*
* Transet.java
*
* Created on December 10, 2004, 12:05 PM
*/
public class Transet {
public static final void main(String[] args) throws Exception {
Point location = MouseInfo.getPointerInfo().getLocation();
Process p = Runtime.getRuntime().exec(new String[] {"transset"});
Robot r = new Robot();
r.mouseMove(location.x,location.y);
r.mousePress(MouseEvent.BUTTON1_MASK);
r.mouseRelease(MouseEvent.BUTTON1_MASK);
p.waitFor();
}
}
|
So what, you say? Compile this and then add a keyboard shortcut (using whatever means you have - I use khotkeys in kde) and make the shortcut execute "/opt/jdk1.5.0/bin/java -classpath {path_to_Transet.class} Transet"
The window under the mouse will toggle transparency with this. Yay. |
|
Back to top |
|
|
|