bugGNU Octave - Bugs: bug #56697, waitfor and the...

 
 

bug #56697: waitfor and the "Interruptible" and "BusyAction" properties

Submitted by:  Guillaume <gyom>
Submitted on:  Tue 30 Jul 2019 02:15:25 PM UTC  
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  None Assigned to:  None
Originator Name:  Guillaume Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 30 Jul 2019 02:15:25 PM UTC, original submission:  

I notice a difference between Matlab and Octave in the following example:

function testinterruptible

f = figure ();
uicontrol (f,...
  'Units', 'normalized',...
  'Position', [0.1 0.4 0.3 0.2],...
  'String', 'Press me',...
  'Callback', @cb,...
  'Interruptible', 'off',...
  'BusyAction', 'Cancel');

function cb (varargin)

h = uicontrol (gcbf,...
  'Units', 'normalized',...
  'Position', [0.6 0.4 0.3 0.2],...
  'String', 'Again',...
  'CallBack', 'delete (gcbo);');
waitfor (h);

In Matlab, if you click on the "Press me" button, it displays the "Again" button and, when clicking on the latter, its callback is executed and the button is deleted, unblocking the waitfor. In Octave, the callback does not get executed so one gets stuck in the waitfor. The behavior of the "Interruptible" and "BusyAction" properties was already discussed in bug #52804.

Guillaume <gyom>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gyom (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5