Re: [matplotlib-devel] QT backend bug - working patch this time

2007-09-23 Thread Eike Welk
Sorry, I've sent a corrupted patch. This one should work.

Regards,
Eike.
Index: backend_qt.py
===
--- backend_qt.py	(revision 3876)
+++ backend_qt.py	(working copy)
@@ -46,11 +46,14 @@
 qApp = qt.QApplication( [" "] )
 qt.QObject.connect( qApp, qt.SIGNAL( "lastWindowClosed()" ),
 qApp, qt.SLOT( "quit()" ) )
-else:
+#remember that matplotlib created the qApp - will be used by show()
+_create_qApp.qAppCreatedHere = True
+# else:
   # someone else aready created the qApp and
   # we let them handle the event-loop control.
-  show._needmain = False
 
+_create_qApp.qAppCreatedHere = False
+
 def show():
 """
 Show all the figures and enter the qt main loop
@@ -65,13 +68,11 @@
 if figManager != None:
 figManager.canvas.draw()
 
-if ( show._needmain ):
+if _create_qApp.qAppCreatedHere:
+  #only start event loop if matplotlib created the qApp
   qt.qApp.exec_loop()
-  show._needmain = False
 
-show._needmain = True
 
-
 def new_figure_manager( num, *args, **kwargs ):
 """
 Create a new figure manager instance
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Agg license for 2.5: OK now?

2007-09-23 Thread Eric Firing
John et al.,

"Agg 2.5 will ship with a libsigc++ license that will allow us to treat 
the code as MIT X11 unless the code is pulled out, allowing Antigrain to 
be used internally for Silverlight and allowing them to license 
Antigrain for other customers."

I found the above quote on this page: http://www.mono-project.com/Moonlight

I don't understand it; does it mean that we, too, can continue using 
future versions of Agg?

Eric

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Agg license for 2.5: OK now?

2007-09-23 Thread Bill Baxter
On 9/24/07, Eric Firing <[EMAIL PROTECTED]> wrote:
>
> John et al.,
>
> "Agg 2.5 will ship with a libsigc++ license that will allow us to treat
> the code as MIT X11 unless the code is pulled out, allowing Antigrain to
> be used internally for Silverlight and allowing them to license
> Antigrain for other customers."
>
> I found the above quote on this page:
> http://www.mono-project.com/Moonlight
>
> I don't understand it; does it mean that we, too, can continue using
> future versions of Agg?


Weird.  It reads to me more like they struck some sort of deal whereby the
code can be used as MIT X11 as long as it's an internal part of Silverlight,
but if removed from Silverlight, then it will revert to the current
GPL/commercial dual license.

--bb
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Agg license for 2.5: OK now?

2007-09-23 Thread Eric Firing
Bill Baxter wrote:
> 
> On 9/24/07, *Eric Firing* <[EMAIL PROTECTED] 
> > wrote:
> 
> John et al.,
> 
> "Agg 2.5 will ship with a libsigc++ license that will allow us to treat
> the code as MIT X11 unless the code is pulled out, allowing Antigrain to
> be used internally for Silverlight and allowing them to license
> Antigrain for other customers."
> 
> I found the above quote on this page:
> http://www.mono-project.com/Moonlight
> 
> I don't understand it; does it mean that we, too, can continue using
> future versions of Agg?
> 
> 
> Weird.  It reads to me more like they struck some sort of deal whereby 
> the code can be used as MIT X11 as long as it's an internal part of 
> Silverlight, but if removed from Silverlight, then it will revert to the 
> current GPL/commercial dual license.
> 
> --bb

Maybe this is the result of the Mono people contacting Maxim as 
suggested by his 10/26 news post here: 
http://www.antigrain.com/news/index.html

"# Current AGG users who are willing to continue using AGG under the old 
terms and conditions are encouraged to contact me and I will consider 
their requests."

Eric

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel