octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56697] waitfor and the "Interruptible" and "B


From: Guillaume
Subject: [Octave-bug-tracker] [bug #56697] waitfor and the "Interruptible" and "BusyAction" properties
Date: Tue, 30 Jul 2019 10:15:27 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

URL:
  <https://savannah.gnu.org/bugs/?56697>

                 Summary: waitfor and the "Interruptible" and "BusyAction"
properties
                 Project: GNU Octave
            Submitted by: 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
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56697>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]