From 2e08ccc0a7fc5e4d22a0638641bb6678de0859a6 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 1 Dec 2005 18:12:33 +0000 Subject: indentation --- examples/gtk/uimanager.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'examples') 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', 'N', 'Create a new file', self.file_new_cb), - ('Open', gtk.STOCK_OPEN, '_Open', 'O', 'Open a file', self.file_open_cb), - ('Close', gtk.STOCK_CLOSE, '_Close', 'W', 'Close the current window', self.file_close_cb), - ('Quit', gtk.STOCK_QUIT, '_Quit', 'Q', 'Quit application', self.file_quit_cb), + ('New', gtk.STOCK_NEW, '_New', 'N', + 'Create a new file', self.file_new_cb), + ('Open', gtk.STOCK_OPEN, '_Open', 'O', + 'Open a file', self.file_open_cb), + ('Close', gtk.STOCK_CLOSE, '_Close', 'W', + 'Close the current window', self.file_close_cb), + ('Quit', gtk.STOCK_QUIT, '_Quit', '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() -- cgit v1.2.1