All pastes #586369 Raw Edit

Anonymous

public python v1 · immutable
#586369 ·published 2007-06-23 20:13 UTC
rendered paste body
colordiff -Naur /usr/local/src/anygui-0.1.1/lib/anygui/backends/gtkgui.py /usr/lib/python2.4/site-packages/anygui/backends/gtkgui.py--- /usr/local/src/anygui-0.1.1/lib/anygui/backends/gtkgui.py   2002-02-07 01:27:56.000000000 -0700+++ /usr/lib/python2.4/site-packages/anygui/backends/gtkgui.py  2007-06-23 14:10:58.000000000 -0600@@ -62,7 +62,7 @@ ################################################################ class Label(ComponentMixin, AbstractLabel):-    _gtk_class = GtkLabel+    _gtk_class = gtk.Label     def _ensure_created(self):         self._init_args = (str(self._text),)@@ -75,7 +75,7 @@ ################################################################ class Button(ComponentMixin, AbstractButton):-    _gtk_class = GtkButton+    _gtk_class = gtk.Button     def _ensure_created(self):         self._init_args = (str(self._text),)@@ -117,14 +117,14 @@             self._gtk_comp.children()[0].set_text(str(self._text)) class CheckBox(ToggleButtonMixin, AbstractCheckBox):-    _gtk_class = GtkCheckButton+    _gtk_class = gtk.CheckButton     def _ensure_created(self):         self._init_args = (str(self._text),)         return ComponentMixin._ensure_created(self) class RadioButton(ToggleButtonMixin, AbstractRadioButton):-    _gtk_class = GtkRadioButton+    _gtk_class = gtk.RadioButton     def _ensure_created(self):         if self._group and len(self._group._items) > 1:@@ -150,9 +150,9 @@ ################################################################-class ScrollableListBox(GtkScrolledWindow):+class ScrollableListBox(gtk.ScrolledWindow):     def __init__(self, *args, **kw):-        GtkScrolledWindow.__init__(self, *args, **kw)+        gtk.ScrolledWindow.__init__(self, *args, **kw)         self._listbox = GtkCList()         self._listbox.show()         self.set_policy(POLICY_AUTOMATIC, POLICY_AUTOMATIC)@@ -191,7 +191,7 @@ ################################################################ class TextField(ComponentMixin, AbstractTextField):-    _gtk_class = GtkEntry+    _gtk_class = gtk.Entry     _ignore_changed = 0     def _ensure_created(self):@@ -242,9 +242,9 @@         if not self._ignore_changed:             self.modify(text=self._backend_text())-class ScrollableTextArea(GtkScrolledWindow):+class ScrollableTextArea(gtk.ScrolledWindow):     def __init__(self, *args, **kw):-        GtkScrolledWindow.__init__(self, *args, **kw)+        gtk.ScrolledWindow.__init__(self, *args, **kw)         self._textarea = GtkText()         self._textarea.show()         self.set_policy(POLICY_AUTOMATIC, POLICY_AUTOMATIC)@@ -307,7 +307,7 @@ ################################################################ class Frame(ComponentMixin, AbstractFrame):-    _gtk_class = GtkLayout+    _gtk_class = gtk.Layout     _visible = 0     _init_args = ()@@ -317,13 +317,13 @@ ################################################################ class Window(ComponentMixin, AbstractWindow):-    _gtk_class = GtkWindow+    _gtk_class = gtk.Window     _gtk_style = 0     def _ensure_created(self):         if self._gtk_comp is None:             self._gtk_comp = self._gtk_class(WINDOW_TOPLEVEL)-            self._gtk_container = GtkLayout()+            self._gtk_container = gtk.Layout()             self._gtk_comp.add(self._gtk_container)             self._gtk_container.show()             return 1