Example #1
0
File: simple.py Project: k-nut/miro
 def __init__(self, child=None):
     Bin.__init__(self)
     self.set_widget(gtk.Expander())
     if child is not None:
         self.add(child)
     self.label = None
     # This is a complete hack.  GTK expanders have a transparent
     # background most of the time, except when they are prelighted.  So we
     # just set the background to white there because that's what should
     # happen in the item list.
     self.modify_style("bg", gtk.STATE_PRELIGHT, gtk.gdk.color_parse("white"))
Example #2
0
 def __init__(self, horizontal, vertical):
     Bin.__init__(self)
     self.set_widget(gtk.ScrolledWindow())
     if horizontal:
         h_policy = gtk.POLICY_AUTOMATIC
     else:
         h_policy = gtk.POLICY_NEVER
     if vertical:
         v_policy = gtk.POLICY_AUTOMATIC
     else:
         v_policy = gtk.POLICY_NEVER
     self._widget.set_policy(h_policy, v_policy)
Example #3
0
File: simple.py Project: kmshi/miro
 def __init__(self, child=None):
     Bin.__init__(self)
     self.set_widget(gtk.Expander())
     if child is not None:
         self.add(child)
     self.label = None
     # This is a complete hack.  GTK expanders have a transparent
     # background most of the time, except when they are prelighted.  So we
     # just set the background to white there because that's what should
     # happen in the item list.
     self.modify_style('bg', gtk.STATE_PRELIGHT,
                       gtk.gdk.color_parse('white'))
Example #4
0
File: simple.py Project: kmshi/miro
 def __init__(self, horizontal, vertical):
     Bin.__init__(self)
     self.set_widget(gtk.ScrolledWindow())
     if horizontal:
         h_policy = gtk.POLICY_AUTOMATIC
     else:
         h_policy = gtk.POLICY_NEVER
     if vertical:
         v_policy = gtk.POLICY_AUTOMATIC
     else:
         v_policy = gtk.POLICY_NEVER
     self._widget.set_policy(h_policy, v_policy)
Example #5
0
 def __init__(self):
     Bin.__init__(self)
     Drawable.__init__(self)
     self.set_widget(BackgroundWidget())
Example #6
0
 def __init__(self):
     Bin.__init__(self)
     Drawable.__init__(self)
     self.set_widget(BackgroundWidget())
Example #7
0
 def __init__(self, color=None):
     Bin.__init__(self)
     self.set_widget(gtk.EventBox())
     if color is not None:
         self.set_background_color(color)
Example #8
0
File: simple.py Project: kmshi/miro
 def __init__(self, color=None):
     Bin.__init__(self)
     self.set_widget(gtk.EventBox())
     if color is not None:
         self.set_background_color(color)
 def __init__(self, xalign=0, yalign=0, xscale=0, yscale=0,
         top_pad=0, bottom_pad=0, left_pad=0, right_pad=0):
     Bin.__init__(self)
     self.set_widget(gtk.Alignment(xalign, yalign, xscale, yscale))
     self.set_padding(top_pad, bottom_pad, left_pad, right_pad)
Example #10
0
 def __init__(self, xalign=0, yalign=0, xscale=0, yscale=0,
         top_pad=0, bottom_pad=0, left_pad=0, right_pad=0):
     Bin.__init__(self)
     self.set_widget(gtk.Alignment(xalign, yalign, xscale, yscale))
     self.set_padding(top_pad, bottom_pad, left_pad, right_pad)