diff options
author | Johan Dahlin <johan@src.gnome.org> | 2006-04-03 17:19:43 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2006-04-03 17:19:43 +0000 |
commit | fcce6ce238c0d325c403e2c557659815358329b7 (patch) | |
tree | f473998d2729c3e85265eab7ad5fb1c8715a8376 /examples/simple | |
parent | 9743b4f7df7984d755c93b3aeb0fbf94fecf0144 (diff) | |
download | pygtk-fcce6ce238c0d325c403e2c557659815358329b7.tar.gz |
pyflakes
Diffstat (limited to 'examples/simple')
-rw-r--r-- | examples/simple/dnd.py | 16 | ||||
-rwxr-xr-x | examples/simple/scribble.py | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/examples/simple/dnd.py b/examples/simple/dnd.py index cd217fb8..0217def7 100644 --- a/examples/simple/dnd.py +++ b/examples/simple/dnd.py @@ -1,9 +1,10 @@ #! /usr/bin/env python -import pygtk -pygtk.require('2.0') -import gtk, gobject -from dndpixmap import * +import gobject +import gtk + +from dndpixmap import drag_icon_xpm, trashcan_open_xpm, trashcan_closed_xpm + trashcan_open = None trashcan_closed = None @@ -20,9 +21,10 @@ TARGET_STRING = 0 TARGET_ROOTWIN = 1 target = [ -('STRING', 0, TARGET_STRING), -('text/plain', 0, TARGET_STRING), -('application/x-rootwin-drop', 0, TARGET_ROOTWIN)] + ('STRING', 0, TARGET_STRING), + ('text/plain', 0, TARGET_STRING), + ('application/x-rootwin-drop', 0, TARGET_ROOTWIN) + ] def target_drag_leave(w, context, time): global trashcan_closed diff --git a/examples/simple/scribble.py b/examples/simple/scribble.py index c1684490..465effd2 100755 --- a/examples/simple/scribble.py +++ b/examples/simple/scribble.py @@ -2,8 +2,6 @@ #this is a simple translation of the scribble example that comes with GTK+ -import sys -import pygtk; pygtk.require("2.0") import gtk pixmap = None |