Created
March 13, 2015 14:17
-
-
Save vojtechtrefny/dbdd50691fd78c7abb2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gi.repository import Gtk, Gdk | |
class ExampleWindow(Gtk.Window): | |
def __init__(self): | |
Gtk.Window.__init__(self, title="Example") | |
self.set_default_size(150, 100) | |
self.set_border_width(6) | |
scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, adjustment=Gtk.Adjustment(0, 1,100, 1, 10, 0)) | |
scale.add_mark(100, Gtk.PositionType.BOTTOM, "100") | |
scale.add_mark(99, Gtk.PositionType.BOTTOM, "99") | |
self.add(scale) | |
win = ExampleWindow() | |
win.connect("delete-event", Gtk.main_quit) | |
win.show_all() | |
Gtk.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment