Re: [Veusz-discuss] Possible to add custom tutorial?

2015-04-21 Par sujet Jeremy Sanders

Hi Martin

On 04/21/2015 01:18 PM, Martin Pescador wrote:


In the first instance, is this possible? If so, can you point me in the
right direction so that I can investigate whether it lies within my
technical abilities?


The tutorial code is defined in this source file:

https://github.com/jeremysanders/veusz/blob/master/veusz/windows/tutorial.py

You'd need to make your own classes based on TutorialStep. At the moment 
the code just starts with StepIntro. It won't be too hard to do if you 
just want to show some instructions. More involved interactive tutorials 
will be harder.


If you're building from source then it should be possible to replace the 
code easily enough. If you want to use the binary, it would be more 
difficult. It may be possible to hack in some code using the plugin 
system, e.g.


import veusz.windows.tutorial as tutorial
from veusz.windows.tutotorial import TutorialStep

class MyStep(TutorialStep):
  def __init__(self, mainwin):
...

tutorial.StepIntro = MyStep

Cheers

Jeremy

___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss


[Veusz-discuss] Possible to add custom tutorial?

2015-04-21 Par sujet Martin Pescador

Hi Jeremy

I have introduced Veusz to some people in my organization and to 
students. The tutorial built in to Veusz is useful as an introduction 
and I am potentially interested in adding a few tutorials for specific 
plots, to help smooth such introductions.


In the first instance, is this possible? If so, can you point me in the 
right direction so that I can investigate whether it lies within my 
technical abilities?


With grateful thanks,

Martin Fisher

Fauna  Flora International
fauna-flora.org
oryxthejournal.org

___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss