[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64773] In a @callback the command input() is
From: |
Alexander Paul |
Subject: |
[Octave-bug-tracker] [bug #64773] In a @callback the command input() is misinterpred. |
Date: |
Fri, 13 Oct 2023 03:39:57 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64773>
Summary: In a @callback the command input() is misinterpred.
Group: GNU Octave
Submitter: erwin55
Submitted: Fri 13 Oct 2023 07:39:55 AM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 8.3.0
Discussion Lock: Any
Operating System: Any
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Fri 13 Oct 2023 07:39:55 AM UTC By: Alexander Paul <erwin55>
It looks like the interpreter is trying to execute whatever was typed after
the callback has finished. E.g.:
figure ()
PushButton = uicontrol(gcf,'Style', 'pushbutton', ...
'String', "*ERASE History** \n -T.B.C-", ...
'Units','Normalized', ...
'BackgroundColor',[1 0 0], ...
'Position', [0.39 0.0 .2 .2], ...
'Callback', @EraseHistory);
function EraseHistory(ObjH, EventData)
FigH = ancestor(ObjH, 'figure');
Yes = input('Erase the history buffer? y/n(any) >> ','s');
if(strcmp(Yes,"y"));
disp('Yes chosen');
else
disp('Nothing happens');
end
end
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64773>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #64773] In a @callback the command input() is misinterpred.,
Alexander Paul <=