function varargout = ana1(varargin)
% DATATRANS_GUIDATA M-file for datatrans_guidata.fig
% DATATRANS_GUIDATA, by itself, creates a new DATATRANS_GUIDATA or raises the existing
% singleton*.
%
% H = DATATRANS_GUIDATA returns the handle to a new DATATRANS_GUIDATA or the handle to
% the existing singleton*.
%
% DATATRANS_GUIDATA('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in DATATRANS_GUIDATA.M with the given input arguments.
%
% DATATRANS_GUIDATA('Property','Value',...) creates a new DATATRANS_GUIDATA or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before datatrans_guidata_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to datatrans_guidata_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help datatrans_guidata
% Last Modified by GUIDE v2.5 17-May-2010 17:03:46
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @ana1_OpeningFcn, ...
'gui_OutputFcn', @ana1_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before datatrans_guidata is made visible.
function ana1_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to datatrans_guidata (see VARARGIN)
% Choose default command line output for datatrans_guidata
handles.output = hObject;
handles.times = 0;
handles.mainw = varargin{1};
handles.mainhandles = guihandles(handles.mainw);
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes datatrans_guidata wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = ana1_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in add.
function add_Callback(hObject, eventdata, handles)
% hObject handle to add (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
handles.times = handles.times + 1;
guidata(hObject, handles);
set(handles.text1, 'String', num2str(handles.times));
% --- Executes on button press in minus.
function minus_Callback(hObject, eventdata, handles)
% hObject handle to minus (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
handles.times = handles.times - 1;
guidata(hObject, handles);
set(handles.text1, 'String', num2str(handles.times));
% --- Executes on button press in quit.
function quit_Callback(hObject, eventdata, handles)
% hObject handle to quit (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.mainhandles.main, 'Visible', 'on');
closereq
案例一 GUI数据传递和多窗口编程.zip
版权申诉
4 浏览量
2021-12-03
18:56:19
上传
评论
收藏 30KB ZIP 举报
陆小马
- 粉丝: 749
- 资源: 2065
最新资源
- 基于opencv的人脸识别考勤系统python源码+数据.zip
- IOT安装包 iotech-iot-1.5-dev-1.5.0-amd64.deb
- 基于物品的协同过滤算法(推荐视频)工具类(见仁见智)
- 21信管2班 武学芹组+独立样本T检验数据分析案例.zip
- demo_ccms_global_open_wlan.py
- 小程序项目源码-小契约(交友互动小程序).zip
- 小程序项目源码-健身房预约课程小程序.zip
- 小程序项目源码-wechat-app-xiaoyima-master小程序.zip
- 小程序项目源码-滑动选项卡小程序.zip
- 小程序项目源码-学习Demo影视推荐、音乐播放、地图小程序.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈