Samuel Garcia
2011-10-05 12:05:17 UTC
Hi list,
sorry for the newby question.
I can't find in doc how to change color of a RectangleShape.
There are two ways for constructing this
Thank you for answer.
Samuel
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Samuel Garcia
Lyon Neuroscience
CNRS - UMR5292 - INSERM U1028 - Universite Claude Bernard LYON 1
Equipe R et D
50, avenue Tony Garnier
69366 LYON Cedex 07
FRANCE
Tél : 04 37 28 74 24
Fax : 04 37 28 76 01
http://olfac.univ-lyon1.fr/unite/equipe-07/
http://neuralensemble.org/trac/OpenElectrophy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sorry for the newby question.
I can't find in doc how to change color of a RectangleShape.
There are two ways for constructing this
from guiqwt.shapes import RectangleShape
from guiqwt.styles import ShapeParam
param = ShapeParam()
param.title = 'My rectangle'
rect_item = RectangleShape(0., 2., 4., 0., param)
from guiqwt.builder import make
rect_item = make.rectangle(0., 2., 4., 0., title='My rectangle')
But, I can find the way to do it.from guiqwt.styles import ShapeParam
param = ShapeParam()
param.title = 'My rectangle'
rect_item = RectangleShape(0., 2., 4., 0., param)
from guiqwt.builder import make
rect_item = make.rectangle(0., 2., 4., 0., title='My rectangle')
Thank you for answer.
Samuel
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Samuel Garcia
Lyon Neuroscience
CNRS - UMR5292 - INSERM U1028 - Universite Claude Bernard LYON 1
Equipe R et D
50, avenue Tony Garnier
69366 LYON Cedex 07
FRANCE
Tél : 04 37 28 74 24
Fax : 04 37 28 76 01
http://olfac.univ-lyon1.fr/unite/equipe-07/
http://neuralensemble.org/trac/OpenElectrophy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~