Hie,

I like to call a wizard GUI (popup) from a custom method. My scenario:

1- A button, call a method example().
2. The method example(), depend state, call other method. For example:
   - Draft state call example_draft()
   - Done state call example_done()

About example method:

def example():
 if state == 'done':
    example_done()
  else:
    example_draft()

Now, in case is done(), I like to open a GUI wizard. For example:

def example_done():
   # Here I check some parts
   ...
   if someting:
    # Call a wizard GUI. How do it?
   else:
    # Not do nothing
   return

Of course calling Wizard.create() and Wizard.execute() don't open
wizard GUI. I like to do similar @ModelView.button_action but inside a
method.

Is it possible to do it?

Thanks

-- 
Raimon

Reply via email to