summaryrefslogtreecommitdiff
path: root/examples/ide
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2006-04-03 17:19:43 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-04-03 17:19:43 +0000
commitfcce6ce238c0d325c403e2c557659815358329b7 (patch)
treef473998d2729c3e85265eab7ad5fb1c8715a8376 /examples/ide
parent9743b4f7df7984d755c93b3aeb0fbf94fecf0144 (diff)
downloadpygtk-fcce6ce238c0d325c403e2c557659815358329b7.tar.gz
pyflakes
Diffstat (limited to 'examples/ide')
-rw-r--r--examples/ide/edit.py12
-rwxr-xr-xexamples/ide/pyide.py12
2 files changed, 12 insertions, 12 deletions
diff --git a/examples/ide/edit.py b/examples/ide/edit.py
index 83a25c6d..6e34e8b0 100644
--- a/examples/ide/edit.py
+++ b/examples/ide/edit.py
@@ -2,10 +2,10 @@
# This is a sample implementation of an editor.
-import pygtk
-pygtk.require('2.0')
+import os
+import dialogs
+
import gtk
-import sys, os, dialogs
BLOCK_SIZE = 2048
RESPONSE_FORWARD = 1
@@ -261,9 +261,9 @@ class EditWindow(gtk.Window):
def help_about(self, mi):
dlg = gtk.MessageDialog(self, gtk.DIALOG_DESTROY_WITH_PARENT,
gtk.MESSAGE_INFO, gtk.BUTTONS_OK,
- "Copyright (C)\n" \
- "1998 James Henstridge\n" \
- "2004 John Finlay\n" \
+ "Copyright (C)\n"
+ "1998 James Henstridge\n"
+ "2004 John Finlay\n"
"This program is covered by the GPL>=2")
dlg.run()
dlg.hide()
diff --git a/examples/ide/pyide.py b/examples/ide/pyide.py
index cefcac2f..9b6ea524 100755
--- a/examples/ide/pyide.py
+++ b/examples/ide/pyide.py
@@ -149,9 +149,9 @@ class Application(gtk.Window):
return
def debug_script(self, fname):
if not fname or not os.path.exists(fname):
- gtk.MessageDialog(self, gtk.DIALOG_DESTROY_WITH_PARENT,
- gtk.MESSAGE_ERROR, gtk.BUTTONS_OK,
- "Invalid filename "+fname)
+ dlg = gtk.MessageDialog(self, gtk.DIALOG_DESTROY_WITH_PARENT,
+ gtk.MESSAGE_ERROR, gtk.BUTTONS_OK,
+ "Invalid filename "+fname)
dlg.run()
return
args = dialogs.InputBox("Arguments",
@@ -162,9 +162,9 @@ class Application(gtk.Window):
return
def profile_script(self, fname):
if not fname or not os.path.exists(fname):
- gtk.MessageDialog(self, gtk.DIALOG_DESTROY_WITH_PARENT,
- gtk.MESSAGE_ERROR, gtk.BUTTONS_OK,
- "Invalid filename "+fname)
+ dlg = gtk.MessageDialog(self, gtk.DIALOG_DESTROY_WITH_PARENT,
+ gtk.MESSAGE_ERROR, gtk.BUTTONS_OK,
+ "Invalid filename "+fname)
dlg.run()
return
args = dialogs.InputBox("Arguments",