|
From: <ai...@us...> - 2009-11-10 00:05:17
|
Revision: 10568
http://plplot.svn.sourceforge.net/plplot/?rev=10568&view=rev
Author: airwin
Date: 2009-11-10 00:05:09 +0000 (Tue, 10 Nov 2009)
Log Message:
-----------
Replace deprecated functionality as per python warning messages.
Modified Paths:
--------------
trunk/examples/python/plplotcanvas_animation.py
trunk/examples/python/plplotcanvas_demo.py
Modified: trunk/examples/python/plplotcanvas_animation.py
===================================================================
--- trunk/examples/python/plplotcanvas_animation.py 2009-11-07 21:09:12 UTC (rev 10567)
+++ trunk/examples/python/plplotcanvas_animation.py 2009-11-10 00:05:09 UTC (rev 10568)
@@ -118,7 +118,7 @@
# Delete event callback
def delete_event(widget, event, data=None):
- return gtk.FALSE
+ return False
# Destroy event calback
def destroy(widget, data=None):
@@ -135,7 +135,7 @@
# Draw plots in succession
for i in range(STEPS):
- gtk.threads_enter()
+ gtk.gdk.threads_enter()
# Lock the current gtk state
gtk_state_lock.acquire()
@@ -143,7 +143,7 @@
# Check to make sure gtk hasn't quit
if gtk_state == GTKSTATE_QUIT:
gtk_state_lock.release()
- gtk.threads_leave()
+ gtk.gdk.threads_leave()
return
# Draw the plot
@@ -151,7 +151,7 @@
# Release the lock
gtk_state_lock.release()
- gtk.threads_leave()
+ gtk.gdk.threads_leave()
# Start threads callback from execute button
def start_threads(widget,data):
@@ -180,7 +180,7 @@
plplot_py_demos.plparseopts(sys.argv,plplot_py_demos.PL_PARSE_FULL);
# Initialize
- gtk.threads_init()
+ gtk.gdk.threads_init()
# Create the first canvas, set its size, draw some axes on it, and
# place it in a frame
@@ -232,6 +232,6 @@
window.show_all()
# Start the gtk main loop
- gtk.threads_enter()
+ gtk.gdk.threads_enter()
gtk.main()
- gtk.threads_leave()
+ gtk.gdk.threads_leave()
Modified: trunk/examples/python/plplotcanvas_demo.py
===================================================================
--- trunk/examples/python/plplotcanvas_demo.py 2009-11-07 21:09:12 UTC (rev 10567)
+++ trunk/examples/python/plplotcanvas_demo.py 2009-11-10 00:05:09 UTC (rev 10568)
@@ -44,7 +44,7 @@
# Delete event callback
def delete_event(widget, event, data=None):
- return gtk.FALSE
+ return False
# Destroy event calback
def destroy(widget, data=None):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|