diff options
author | Johan Dahlin <johan@src.gnome.org> | 2005-02-23 18:11:20 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2005-02-23 18:11:20 +0000 |
commit | 38dfe02c72ffdf8a89d92455d08279a6fd1ae64a (patch) | |
tree | 5d2e8d5fb3d5110943b18a86489bd1560d22c4d3 /examples/pygtk-demo | |
parent | 5f7d0830c3df16de471b47e193a705bdcd3ae7fc (diff) | |
download | pygtk-38dfe02c72ffdf8a89d92455d08279a6fd1ae64a.tar.gz |
Don't use gtk.TRUE/gtk.FALSE anymore.
Diffstat (limited to 'examples/pygtk-demo')
-rw-r--r-- | examples/pygtk-demo/demos/appwindow.py | 2 | ||||
-rw-r--r-- | examples/pygtk-demo/demos/buttonbox.py | 16 | ||||
-rw-r--r-- | examples/pygtk-demo/demos/changedisplay.py | 2 | ||||
-rw-r--r-- | examples/pygtk-demo/demos/colorsel.py | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/examples/pygtk-demo/demos/appwindow.py b/examples/pygtk-demo/demos/appwindow.py index f1365dd6..b29b63ec 100644 --- a/examples/pygtk-demo/demos/appwindow.py +++ b/examples/pygtk-demo/demos/appwindow.py @@ -114,7 +114,7 @@ class ApplicationMainWindowDemo(gtk.Window): bar = merge.get_widget("/MenuBar") bar.show() - table = gtk.Table(1, 4, gtk.FALSE) + table = gtk.Table(1, 4, False) self.add(table) table.attach(bar, diff --git a/examples/pygtk-demo/demos/buttonbox.py b/examples/pygtk-demo/demos/buttonbox.py index cf201dfa..91b434b2 100644 --- a/examples/pygtk-demo/demos/buttonbox.py +++ b/examples/pygtk-demo/demos/buttonbox.py @@ -53,13 +53,13 @@ class ButtonBoxDemo(gtk.Window): vbox.set_border_width(10) frame_horiz.add(vbox) - vbox.pack_start(create_bbox(gtk.TRUE, "Spread", 40, gtk.BUTTONBOX_SPREAD), + vbox.pack_start(create_bbox(True, "Spread", 40, gtk.BUTTONBOX_SPREAD), padding=0) - vbox.pack_start(create_bbox(gtk.TRUE, "Edge", 40, gtk.BUTTONBOX_EDGE), + vbox.pack_start(create_bbox(True, "Edge", 40, gtk.BUTTONBOX_EDGE), padding=5) - vbox.pack_start(create_bbox(gtk.TRUE, "Start", 40, gtk.BUTTONBOX_START), + vbox.pack_start(create_bbox(True, "Start", 40, gtk.BUTTONBOX_START), padding=5) - vbox.pack_start(create_bbox(gtk.TRUE, "End", 40, gtk.BUTTONBOX_END), + vbox.pack_start(create_bbox(True, "End", 40, gtk.BUTTONBOX_END), padding=5) frame_vert = gtk.Frame("Vertical Button Boxes") @@ -69,13 +69,13 @@ class ButtonBoxDemo(gtk.Window): hbox.set_border_width(10) frame_vert.add(hbox) - hbox.pack_start(create_bbox(gtk.FALSE, "Spread", 40, gtk.BUTTONBOX_SPREAD), + hbox.pack_start(create_bbox(False, "Spread", 40, gtk.BUTTONBOX_SPREAD), padding=0) - hbox.pack_start(create_bbox(gtk.FALSE, "Edge", 40, gtk.BUTTONBOX_EDGE), + hbox.pack_start(create_bbox(False, "Edge", 40, gtk.BUTTONBOX_EDGE), padding=5) - hbox.pack_start(create_bbox(gtk.FALSE, "Start", 40, gtk.BUTTONBOX_START), + hbox.pack_start(create_bbox(False, "Start", 40, gtk.BUTTONBOX_START), padding=5) - hbox.pack_start(create_bbox(gtk.FALSE, "End", 40, gtk.BUTTONBOX_END), + hbox.pack_start(create_bbox(False, "End", 40, gtk.BUTTONBOX_END), padding=5) self.show_all() diff --git a/examples/pygtk-demo/demos/changedisplay.py b/examples/pygtk-demo/demos/changedisplay.py index 592a7e0f..c3ce8bd5 100644 --- a/examples/pygtk-demo/demos/changedisplay.py +++ b/examples/pygtk-demo/demos/changedisplay.py @@ -87,7 +87,7 @@ class QueryForToplevel(gtk.Window): self.connect("button-release-event", self.button_release_event_cb) # Process events until clicked is set by button_release_event_cb. - # We pass in may_block=TRUE since we want to wait if there + # We pass in may_block=True since we want to wait if there # are no events currently. # while self.query_clicked is False: diff --git a/examples/pygtk-demo/demos/colorsel.py b/examples/pygtk-demo/demos/colorsel.py index d3f6c904..252d09c4 100644 --- a/examples/pygtk-demo/demos/colorsel.py +++ b/examples/pygtk-demo/demos/colorsel.py @@ -54,7 +54,7 @@ class ColorSelectorDemo(gtk.Window): colorsel.set_previous_color(self.color) colorsel.set_current_color(self.color) - colorsel.set_has_palette(gtk.TRUE) + colorsel.set_has_palette(True) response = dialog.run() |