summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2005-12-01 18:12:33 +0000
committerJohan Dahlin <johan@src.gnome.org>2005-12-01 18:12:33 +0000
commit2e08ccc0a7fc5e4d22a0638641bb6678de0859a6 (patch)
tree84785b246b05ae29504443924b881788d300962c /examples
parent429603123f49ac1db6563a9a2861d871fc968f31 (diff)
downloadpygtk-2e08ccc0a7fc5e4d22a0638641bb6678de0859a6.tar.gz
indentation
Diffstat (limited to 'examples')
-rw-r--r--examples/gtk/uimanager.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/examples/gtk/uimanager.py b/examples/gtk/uimanager.py
index a903b553..b180fa80 100644
--- a/examples/gtk/uimanager.py
+++ b/examples/gtk/uimanager.py
@@ -59,12 +59,17 @@ class Window(gtk.Window):
ag = gtk.ActionGroup('WindowActions')
actions = [
('FileMenu', None, '_File'),
- ('New', gtk.STOCK_NEW, '_New', '<control>N', 'Create a new file', self.file_new_cb),
- ('Open', gtk.STOCK_OPEN, '_Open', '<control>O', 'Open a file', self.file_open_cb),
- ('Close', gtk.STOCK_CLOSE, '_Close', '<control>W', 'Close the current window', self.file_close_cb),
- ('Quit', gtk.STOCK_QUIT, '_Quit', '<control>Q', 'Quit application', self.file_quit_cb),
+ ('New', gtk.STOCK_NEW, '_New', '<control>N',
+ 'Create a new file', self.file_new_cb),
+ ('Open', gtk.STOCK_OPEN, '_Open', '<control>O',
+ 'Open a file', self.file_open_cb),
+ ('Close', gtk.STOCK_CLOSE, '_Close', '<control>W',
+ 'Close the current window', self.file_close_cb),
+ ('Quit', gtk.STOCK_QUIT, '_Quit', '<control>Q',
+ 'Quit application', self.file_quit_cb),
('HelpMenu', None, '_Help'),
- ('About', None, '_About', None, 'About application', self.help_about_cb),
+ ('About', None, '_About', None, 'About application',
+ self.help_about_cb),
]
ag.add_actions(actions)
self.ui = gtk.UIManager()
@@ -106,7 +111,8 @@ class Window(gtk.Window):
def help_about_cb(self, action):
dialog = gtk.MessageDialog(self,
- gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
+ (gtk.DIALOG_MODAL |
+ gtk.DIALOG_DESTROY_WITH_PARENT),
gtk.MESSAGE_INFO, gtk.BUTTONS_OK,
"Small example of the new GtkUIManger")
dialog.run()