ajbmachon / guidata

Automatically exported from code.google.com/p/guidata
Other
0 stars 0 forks source link

plot and prm.view/prm.edit in guidata #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. write a guidata code
2. plot data before/after writing prm.view/prm.edit
3. run in a new terminal (in spyder)

What is the expected output? What do you see instead?
the expected output is to be able to move from the gui window to the plot 
window (and to use its features). when the command of plot comes before the 
command of prm.view/edit i cannot move from the gui window (which is on the 
"front") to the plot window. When when it comes after the gui window, the gui 
works fine but the plot window starts and shuts immediately after pressing "Ok" 
on the gui.

What version of the product are you using? On what operating system?
i use spyder 2.0.5 on windows 7

Please provide any additional information below.

Original issue reported on code.google.com by Dek...@gmail.com on 24 May 2012 at 5:26

GoogleCodeExporter commented 9 years ago
The dialog box generated by guidata when calling the 'edit' (or 'view') method 
is a modal dialog box because the form contents are truly stored in the dataset 
object only when the OK button is pressed.

If you want to interact with another widget, like a Matplotlib figure, you need 
to use something like the example here:
http://code.google.com/p/guidata/source/browse/guidata/tests/editgroupbox.py
In other words, you need to integrate a guidata widget in a dialog box (or main 
window). And in the same dialog box (or main window), you will have to embed a 
Matplotlib widget (see the Matplotlib example 'embedding_in_qt4.py').

...or you may choose to use guiqwt which already integrate all those features 
without having to write anything. See for example:
http://packages.python.org/guiqwt/examples.html#simple-application

Original comment by pierre.raybaut on 7 Nov 2012 at 9:55