Skip to content

Instantly share code, notes, and snippets.

@iamutkarshtiwari
Created March 10, 2016 12:00
Show Gist options
  • Save iamutkarshtiwari/ea8a0b3ee81afe51f7ac to your computer and use it in GitHub Desktop.
Save iamutkarshtiwari/ea8a0b3ee81afe51f7ac to your computer and use it in GitHub Desktop.
class ComboBox(Gtk.ComboBox):
-
+ '''
+ This class provides a simple wrapper based on the :class:`Gtk.ComboBox`.
+ This lets you make a list of items, with a value, label and optionally an
+ icon.
+ '''
__gtype_name__ = 'SugarComboBox'
def __init__(self):
@@ -43,6 +53,13 @@ def __init__(self):
self.set_row_separator_func(self._is_separator, None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment