Mercurial > enso_core
diff enso/ui/messages/primarywindow.py @ 50:51181fe08fea
The event manager is now passed-in to primary and mini-message implementations, which decouples the enso.ui.messages package from ui.events.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 25 Feb 2008 12:39:19 -0600 |
parents | 07395bf07eb8 |
children | 525fb0abcb4d |
line wrap: on
line diff
--- a/enso/ui/messages/primarywindow.py Mon Feb 25 12:22:47 2008 -0600 +++ b/enso/ui/messages/primarywindow.py Mon Feb 25 12:39:19 2008 -0600 @@ -47,7 +47,6 @@ from enso.graphics.measurement import inchesToPoints from enso.ui.graphics import drawRoundedRect, ALL_CORNERS from enso.utils.xml_tools import escapeXml -from enso.ui import events from enso.ui.messages.windows import MessageWindow, computeWidth @@ -110,7 +109,7 @@ message has been dismissed. """ - def __init__( self, msgMan ): + def __init__( self, msgMan, eventManager ): """ Initializes the PrimaryMessage singleton """ @@ -126,7 +125,7 @@ maxSize = ( width, height ) MessageWindow.__init__( self, maxSize ) - self.__evtManager = events.eventManager + self.__evtManager = eventManager self.__msgManager = msgMan self.__msg = None self.__waiting = False