[GRASS-dev] [GRASS GIS] #2997: python editor refuses to run script with UI after closing multiple times

#2997: python editor refuses to run script with UI after closing multiple times
----------------------------+-------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: unspecified
Keywords: python, editor | CPU: Unspecified
Platform: Unspecified |
----------------------------+-------------------------
Steps to reproduce:

# open simple python editor
# load GRASS module example
# run -> GUI is shown
# close dialog
# run -> nothing happens

Reason: `self.running` is still True

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2997&gt;
GRASS GIS <https://grass.osgeo.org>

#2997: python editor refuses to run script with UI after closing multiple times
--------------------------+----------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: python, editor
       CPU: Unspecified | Platform: Unspecified
--------------------------+----------------------------
Description changed by martinl:

Old description:

Steps to reproduce:

# open simple python editor
# load GRASS module example
# run -> GUI is shown
# close dialog
# run -> nothing happens

Reason: `self.running` is still True

New description:

Steps to reproduce:

  1. open simple python editor
  2. load GRASS module example
  3. run -> GUI is shown
  4. close dialog
  5. run -> nothing happens

Reason: `self.running` is still True

--

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2997#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#2997: python editor refuses to run script with UI after closing GUI dialog
--------------------------+----------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: python, editor
       CPU: Unspecified | Platform: Unspecified
--------------------------+----------------------------

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2997#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#2997: python editor refuses to run script with UI after closing GUI dialog
--------------------------+----------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.2.0
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: python, editor
       CPU: Unspecified | Platform: Unspecified
--------------------------+----------------------------
Changes (by wenzeslaus):

* status: new => closed
* resolution: => fixed

Comment:

In [changeset:"68396" 68396]:
{{{
#!CommitTicketReference repository="" revision="68396"
pyedit: do not use onDone because it is not executed when GUI is invoked
(fixes #2997)

Now you can run again even if it is already running
which is the same behavior as for normal module calls.

It also uses the same temporary file once it was created
to avoid the need to delete it all the time. It is deleted
when file is actually saved.

Also remove suppression of the GUI interface because we
actually want to get GUI (the parameter does not work, r68395).
}}}

--
Ticket URL: </ticket/2997#comment:4>
GRASS GIS <https://grass.osgeo.org>

#2997: python editor refuses to run script with UI after closing GUI dialog
--------------------------+------------------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.2.0
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: python, editor, pyedit
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------------
Changes (by wenzeslaus):

* keywords: python, editor => python, editor, pyedit

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2997#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>