I cleaned up widget.py and got the imports to look like:
import sys
import types
from wxPython.wx import *
from dispatch import EventDispatch
from event import *
from error import AbstractMethodException
from binding import EventBinding
from font import Font
import graphic
from pom import Component
I left the
from event import *
line because there are so many different events, but the MOUSE_EVENTS list
takes care of most of them, so I could be explicit with that import as well.
What I'm wondering is whethr the imports above are considered "good style".
I remember Neil bringing this up long ago, but I don't know if there was a
general rule other than avoid import * when possible, which of course is
always done with wxPython.wx, but other than that how does the list above
look?
ka
ps. My fingers are still crossed that I haven't completely broken anything.
I've been running various samples as I clean, so I think we're still in good
shape.
|