Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
transset GUI frontend
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Panda
Apprentice
Apprentice


Joined: 31 Jul 2003
Posts: 223
Location: Cremona <=> Catania

PostPosted: Mon Oct 18, 2004 5:44 pm    Post subject: transset GUI frontend Reply with quote

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
View user's profile Send private message
leks
n00b
n00b


Joined: 11 Oct 2004
Posts: 40

PostPosted: Tue Oct 26, 2004 11:21 am    Post subject: Reply with quote

great one, but i still hate the TK toolkit :? :(
Back to top
View user's profile Send private message
Panda
Apprentice
Apprentice


Joined: 31 Jul 2003
Posts: 223
Location: Cremona <=> Catania

PostPosted: Tue Dec 07, 2004 7:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
MrStaticVoid
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 114
Location: Maryland

PostPosted: Tue Dec 07, 2004 10:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Panda
Apprentice
Apprentice


Joined: 31 Jul 2003
Posts: 223
Location: Cremona <=> Catania

PostPosted: Wed Dec 08, 2004 12:30 am    Post subject: Reply with quote

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
View user's profile Send private message
justabssplyr
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2004
Posts: 110

PostPosted: Wed Dec 08, 2004 1:09 am    Post subject: Reply with quote

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
View user's profile Send private message
MrStaticVoid
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 114
Location: Maryland

PostPosted: Wed Dec 08, 2004 1:48 am    Post subject: Reply with quote

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
View user's profile Send private message
incabolocabus
Apprentice
Apprentice


Joined: 24 Nov 2003
Posts: 232
Location: Fort Collins, CO

PostPosted: Fri Dec 10, 2004 7:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum