IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Interfaces Graphiques Discussion :

navigation entre vue avec GUI [Débutant]


Sujet :

Interfaces Graphiques

  1. #1
    Membre régulier
    Femme Profil pro
    Électricité CFO CFA
    Inscrit en
    Septembre 2007
    Messages
    212
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 37
    Localisation : Algérie

    Informations professionnelles :
    Activité : Électricité CFO CFA
    Secteur : Bâtiment Travaux Publics

    Informations forums :
    Inscription : Septembre 2007
    Messages : 212
    Points : 119
    Points
    119
    Par défaut navigation entre vue avec GUI
    Bonjour à tous.

    je cherche la commande qui permet de faire la navigation entre dans les interfaces graphique à travers le GUI,
    j'ai déja fait sa à travers une fonction mais ç an'a pas marcher sous les figures de GUI
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    function start_cd (h, dummy)
    modèle2;
     end
    merci à vous
    قال رسول ألله صلى الله عليه وسلم : " من سلك طريقا يلتمس فيه علما سهل الله له به طريقا إلى الجنة "

  2. #2
    Invité
    Invité(e)
    Par défaut
    Bonjour,

    J'oserai citer ma signature :
    "Ça ne marche pas" n'est pas une réponse acceptable Expliquez clairement votre problème (erreurs, résultats non attendus...)..

  3. #3
    Membre régulier
    Femme Profil pro
    Électricité CFO CFA
    Inscrit en
    Septembre 2007
    Messages
    212
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 37
    Localisation : Algérie

    Informations professionnelles :
    Activité : Électricité CFO CFA
    Secteur : Bâtiment Travaux Publics

    Informations forums :
    Inscription : Septembre 2007
    Messages : 212
    Points : 119
    Points
    119
    Par défaut
    Bonjour
    j'en ai aucune erreur,mais quan je fait appel à la figure ,rien n'affiche sur l'ecran
    ben voila le code pour l'interface principale
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    function varargout = interface(varargin)
    % INTERFACE M-file for interface.fig
    %      INTERFACE, by itself, creates a new INTERFACE or raises the existing
    %      singleton*.
    %
    %      H = INTERFACE returns the handle to a new INTERFACE or the handle to
    %      the existing singleton*.
    %
    %      INTERFACE('CALLBACK',hObject,eventData,handles,...) calls the local
    %      function named CALLBACK in INTERFACE.M with the given input arguments.
    %
    %      INTERFACE('Property','Value',...) creates a new INTERFACE or raises the
    %      existing singleton*.  Starting from the left, property value pairs are
    %      applied to the GUI before interface_OpeningFcn gets called.  An
    %      unrecognized property name or invalid value makes property application
    %      stop.  All inputs are passed to interface_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 interface
     
    % Last Modified by GUIDE v2.5 19-Apr-2012 16:46:48
     
    % Begin initialization code - DO NOT EDIT
    gui_Singleton = 1;
    gui_State = struct('gui_Name',       mfilename, ...
                       'gui_Singleton',  gui_Singleton, ...
                       'gui_OpeningFcn', @interface_OpeningFcn, ...
                       'gui_OutputFcn',  @interface_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 interface is made visible.
    function interface_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 interface (see VARARGIN)
     
    % Choose default command line output for interface
    handles.output = hObject;
     
    % Update handles structure
    guidata(hObject, handles);
     
    % UIWAIT makes interface wait for user response (see UIRESUME)
    % uiwait(handles.figure1);
     
     
    % --- Outputs from this function are returned to the command line.
    function varargout = interface_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 pushbutton1.
    function pushbutton1_Callback(hObject, eventdata, handles)
    % hObject    handle to pushbutton1 (see GCBO)
    % eventdata  reserved - to be defined in a future version of MATLAB
    % handles    structure with handles and user data (see GUIDATA)
    function start_cd (h, dummy)
    commande;
    et voila le code pour l'interface que je voudrais appeler avec la premiere
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    function varargout = modele_geometrique_directe(varargin)
    % MODELE_GEOMETRIQUE_DIRECTE M-file for modele_geometrique_directe.fig
    %      MODELE_GEOMETRIQUE_DIRECTE, by itself, creates a new MODELE_GEOMETRIQUE_DIRECTE or raises the existing
    %      singleton*.
    %
    %      H = MODELE_GEOMETRIQUE_DIRECTE returns the handle to a new MODELE_GEOMETRIQUE_DIRECTE or the handle to
    %      the existing singleton*.
    %
    %      MODELE_GEOMETRIQUE_DIRECTE('CALLBACK',hObject,eventData,handles,...) calls the local
    %      function named CALLBACK in MODELE_GEOMETRIQUE_DIRECTE.M with the given input arguments.
    %
    %      MODELE_GEOMETRIQUE_DIRECTE('Property','Value',...) creates a new MODELE_GEOMETRIQUE_DIRECTE or raises the
    %      existing singleton*.  Starting from the left, property value pairs are
    %      applied to the GUI before modele_geometrique_directe_OpeningFcn gets called.  An
    %      unrecognized property name or invalid value makes property application
    %      stop.  All inputs are passed to modele_geometrique_directe_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 modele_geometrique_directe
     
    % Last Modified by GUIDE v2.5 19-Apr-2012 16:52:23
     
    % Begin initialization code - DO NOT EDIT
    gui_Singleton = 1;
    gui_State = struct('gui_Name',       mfilename, ...
                       'gui_Singleton',  gui_Singleton, ...
                       'gui_OpeningFcn', @modele_geometrique_directe_OpeningFcn, ...
                       'gui_OutputFcn',  @modele_geometrique_directe_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 modele_geometrique_directe is made visible.
    function modele_geometrique_directe_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 modele_geometrique_directe (see VARARGIN)
     
    % Choose default command line output for modele_geometrique_directe
    handles.output = hObject;
     
    % Update handles structure
    guidata(hObject, handles);
     
    % UIWAIT makes modele_geometrique_directe wait for user response (see UIRESUME)
    % uiwait(handles.figure1);
     
     
    % --- Outputs from this function are returned to the command line.
    function varargout = modele_geometrique_directe_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;
    merci bien à l'avance
    قال رسول ألله صلى الله عليه وسلم : " من سلك طريقا يلتمس فيه علما سهل الله له به طريقا إلى الجنة "

  4. #4
    Invité
    Invité(e)
    Par défaut
    À part les deux lignes que tu as rajouté :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    function start_cd (h, dummy)
    commande;
    il n'y a rien que n'ait pas généré GUIDE... et je doute que cela vienne de là

    De quelle façon appelles-tu ta figure ?
    Quand tu dis que rien ne s'affiche ? Même pas la figure ?

  5. #5
    Membre régulier
    Femme Profil pro
    Électricité CFO CFA
    Inscrit en
    Septembre 2007
    Messages
    212
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 37
    Localisation : Algérie

    Informations professionnelles :
    Activité : Électricité CFO CFA
    Secteur : Bâtiment Travaux Publics

    Informations forums :
    Inscription : Septembre 2007
    Messages : 212
    Points : 119
    Points
    119
    Par défaut
    Bonjour

    Merci bien Winjerome de m'avoir répondre,
    j'ai fait l'interface par programmation sans l'utilisation de guide je suis pressé avec le temps
    merci encore une fois

    salutations
    قال رسول ألله صلى الله عليه وسلم : " من سلك طريقا يلتمس فيه علما سهل الله له به طريقا إلى الجنة "

  6. #6
    Futur Membre du Club
    Inscrit en
    Avril 2012
    Messages
    9
    Détails du profil
    Informations forums :
    Inscription : Avril 2012
    Messages : 9
    Points : 5
    Points
    5
    Par défaut
    Bonjour,

    Je ne suis pas un pro, mais à tout hasard, appelle plutot ta commande modele2 que modèle2, MATLAB (la prog en général) et les accents c'est pas trop ami ami

  7. #7
    Membre régulier
    Femme Profil pro
    Électricité CFO CFA
    Inscrit en
    Septembre 2007
    Messages
    212
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 37
    Localisation : Algérie

    Informations professionnelles :
    Activité : Électricité CFO CFA
    Secteur : Bâtiment Travaux Publics

    Informations forums :
    Inscription : Septembre 2007
    Messages : 212
    Points : 119
    Points
    119
    Par défaut
    Bonjour
    Merci bien Antoine C malgré que ça n'a pas résolu
    merci comme même
    salutation
    قال رسول ألله صلى الله عليه وسلم : " من سلك طريقا يلتمس فيه علما سهل الله له به طريقا إلى الجنة "

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 1
    Dernier message: 05/02/2015, 18h24
  2. problème de navigation de dossier avec GUI
    Par Latimer dans le forum MATLAB
    Réponses: 1
    Dernier message: 08/06/2013, 19h09
  3. passage entre vues avec android
    Par hkikemmm dans le forum Android
    Réponses: 12
    Dernier message: 15/05/2013, 14h53
  4. Navigation entre plusieurs interfaces GUI
    Par dorsaf2008 dans le forum Interfaces Graphiques
    Réponses: 1
    Dernier message: 09/05/2012, 04h33
  5. Navigation entre pages avec option de tri,etc
    Par elfenlieder dans le forum Ruby on Rails
    Réponses: 12
    Dernier message: 30/10/2007, 13h54

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo