svn://svn.gna.org/svn/mypaint/trunk@265
Required: pygtk, python, swig, gtk, numpy
Debian and derivatives need: python-gtk2-dev python-numpy swig scons
+ Slow PCs will get a small speedup by installing psyco.
Recommended: a pressure sensitive input device (graphic tablet)
# if (event.y >= (screen_h-1)-trigger_area):
# self.scroll(0,10)
- if not self.doc.brush:
- print 'no brush!'
- return
-
- func = self.pressure_mapping
- if func:
- pressure = func(pressure)
+ if self.pressure_mapping:
+ pressure = self.pressure_mapping(pressure)
self.doc.stroke_to(dtime, x, y, pressure)
def canvas_modified_cb(self, x1, y1, w, h):
to figure out where the python modules are.
"""
+# This helps on slow PCs where the python overhead dominates.
+# (30% higher framerate measured on 533MHz CPU; startup slowdown below 20%)
+# Note: python -O -O does not help.
+try:
+ import psyco
+ psyco.full()
+except ImportError:
+ pass
+
import sys, os
join = os.path.join