#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pygtk
pygtk.require('2.0')
import gtk

class MainUI:
    def __init__(self):
        # Comment the below line to have a normal GtkHScale
        gtk.widget_set_default_direction(gtk.TEXT_DIR_RTL)
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
        self.window.connect("destroy", lambda wid: gtk.main_quit())
        self.window.set_size_request(300, -1)
        scale = gtk.HScale()
        scale.set_range(0, 100)
        self.window.add(scale)
        self.window.show_all()


def main():
    MainUI()
    gtk.main()
    return 0 


if __name__ == "__main__":
    main()
