logo

scripts

A bunch of scripts, some to be moved to their own repository
commit: 47a3b47439f57081604cd0819956aca1ed2ad9c6
parent: cb2cf1b6ae8552c961e0526c70f400c4a93875ce
Author: lanodan <lanodan.delta@free.fr>
Date:   Sun, 22 Mar 2015 15:17:00 +0100

commit ;)

Diffstat:

Dcolorpicker.py9---------
Dgtk3test.py7-------
Dimage.py32--------------------------------
3 files changed, 0 insertions(+), 48 deletions(-)

diff --git a/colorpicker.py b/colorpicker.py @@ -1,9 +0,0 @@ -#!/usr/bin/env python - -from gtk import Window, ColorSelection, main - -window = Window() -window.add(ColorSelection()) -window.show_all() - -main() diff --git a/gtk3test.py b/gtk3test.py @@ -1,7 +0,0 @@ -#!/usr/bin/python -from gi.repository import Gtk - -win = Gtk.Window() -win.connect("delete-event", Gtk.main_quit) -win.show_all() -Gtk.main() diff --git a/image.py b/image.py @@ -1,32 +0,0 @@ -#!/usr/bin/env python -import gtk - -window = gtk.Window() -window.set_default_size(640, 480) -window.set_title("Image Viewer") - -class Image: - def __init__(self): - - vbox = gtk.VBox(False, 5) - scrolledwindow = gtk.ScrolledWindow() - - self.image = gtk.Image() - self.button = gtk.FileChooserButton("Select Image", None) - self.button.connect("file-set", self.load_image) - - window.add(vbox) - vbox.pack_start(self.button, False, False, 0) - vbox.pack_start(scrolledwindow, True, True, 0) - - scrolledwindow.add_with_viewport(self.image) - - window.show_all() - - def load_image(self, widget): - self.image.set_from_file(self.button.get_filename()) - window.set_title("Image Viewer - " + self.button.get_filename()) - window.set_icon_from_file(self.button.get_filename()) - -Image() -gtk.main()