Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
logiciel:programmation:python:boa:help:boagettingstarted [2021/02/17 10:36] – ↷ Liens modifiés en raison d'un déplacement. admin | logiciel:programmation:python:boa:help:boagettingstarted [2022/08/13 22:27] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 10: | Ligne 10: | ||
;#; | ;#; | ||
- | ====== Une visite de l' | + | ===== Une visite de l' |
- | ===== Installation et démarrage de Boa Constructor | + | ==== Installation et démarrage de Boa Constructor ==== |
Boa s' | Boa s' | ||
- | ==== Installation sous Windows | + | === Installation sous Windows === |
* Instructions détaillées sur wxPython.org | * Instructions détaillées sur wxPython.org | ||
Ligne 28: | Ligne 28: | ||
* Lancer le nouveau raccourci pour exécuter l' | * Lancer le nouveau raccourci pour exécuter l' | ||
- | ==== UNIX Installation | + | === UNIX Installation === |
* Detailed instructions from wxPython.org | * Detailed instructions from wxPython.org | ||
Ligne 61: | Ligne 61: | ||
* Explorer - allows to navigate the file system, gives access to the wxPython demo (via a Plug-in), allows to change your preferences for Boa, and it will have additional tabs, one for each file you are working on | * Explorer - allows to navigate the file system, gives access to the wxPython demo (via a Plug-in), allows to change your preferences for Boa, and it will have additional tabs, one for each file you are working on | ||
- | ==== Installation from CVS ==== | + | === Installation from CVS === |
The Boa installation guide on the wxPython wiki page ([[http:// | The Boa installation guide on the wxPython wiki page ([[http:// | ||
- | ===== The Palette Window | + | ==== The Palette Window ==== |
The Palette window is the main window of the Boa Constructor Program. Closing the Palette window will terminate the program. The Palette contains two sections, a toolbar, and a multi-pane notebook. | The Palette window is the main window of the Boa Constructor Program. Closing the Palette window will terminate the program. The Palette contains two sections, a toolbar, and a multi-pane notebook. | ||
- | {{ fr:logiciel: | + | {{ logiciel: |
The toolbar gives access to the other windows in the Boa Constructor application. You can hold the mouse pointer over the different icons and help tips will appear. These help tips will tell you what the buttons do. | The toolbar gives access to the other windows in the Boa Constructor application. You can hold the mouse pointer over the different icons and help tips will appear. These help tips will tell you what the buttons do. | ||
Ligne 87: | Ligne 87: | ||
Boa constuctor opens the source code for the new application and the new form in the Editor Window. | Boa constuctor opens the source code for the new application and the new form in the Editor Window. | ||
- | ==== Toolbar Icons - Application | + | === Toolbar Icons - Application === |
{{logiciel: | {{logiciel: | ||
Ligne 95: | Ligne 95: | ||
\\ The check box will indicate that a compenent is selected and the text " | \\ The check box will indicate that a compenent is selected and the text " | ||
- | ==== Toolbar Icons - Help ==== | + | === Toolbar Icons - Help === |
{{logiciel: | {{logiciel: | ||
Ligne 103: | Ligne 103: | ||
\\ Clicking the third one will bring up Python help | \\ Clicking the third one will bring up Python help | ||
- | ===== The Editor Window | + | ==== The Editor Window ==== |
The Editor window is one of the three windows which is created when you run Boa Constructor. If you close the Editor Window, you can re-open it from the Palette Window using the {{logiciel: | The Editor window is one of the three windows which is created when you run Boa Constructor. If you close the Editor Window, you can re-open it from the Palette Window using the {{logiciel: | ||
Ligne 173: | Ligne 173: | ||
The icons above let you Find/ | The icons above let you Find/ | ||
- | {{fr:logiciel: | + | {{logiciel: |
The icons above let you run to the cursor (in debugger), toggle a breakpoint (you can also use F5), insert module information (Author name etc, this can be customized, see [[#Setting Preferences|Module Info]]), and help. | The icons above let you run to the cursor (in debugger), toggle a breakpoint (you can also use F5), insert module information (Author name etc, this can be customized, see [[#Setting Preferences|Module Info]]), and help. | ||
Ligne 182: | Ligne 182: | ||
* < | * < | ||
- | ===== The Frame Designer Windows | + | ==== The Frame Designer Windows ==== |
You access the Frame Designer Window using the frame designer button {{logiciel: | You access the Frame Designer Window using the frame designer button {{logiciel: | ||
Ligne 194: | Ligne 194: | ||
To place the component move the cursor onto the Designer. Click the mouse once in the position where the component is required. Once the component is on the form, it can be moved and resized. You move it by placing the mouse within the component and dragging it. You resize it by dragging one of the eight markers shown on the edge of a selected control. | To place the component move the cursor onto the Designer. Click the mouse once in the position where the component is required. Once the component is on the form, it can be moved and resized. You move it by placing the mouse within the component and dragging it. You resize it by dragging one of the eight markers shown on the edge of a selected control. | ||
- | Changes made through the Designer are saved into the applications source code. Changes are saved when you press the Post button {{fr:logiciel: | + | Changes made through the Designer are saved into the applications source code. Changes are saved when you press the Post button {{logiciel: |
To Cancel all changes made since opening the Designer, click the Cancel button {{logiciel: | To Cancel all changes made since opening the Designer, click the Cancel button {{logiciel: | ||
Ligne 206: | Ligne 206: | ||
</ | </ | ||
- | ===== The Inspector Window | + | ==== The Inspector Window ==== |
The Inspector always shows the configuration of the currently selected component. The Inspector contains 4 pages, the Constructor page (' | The Inspector always shows the configuration of the currently selected component. The Inspector contains 4 pages, the Constructor page (' | ||
Ligne 215: | Ligne 215: | ||
|{{logiciel: | |{{logiciel: | ||
- | ===== Managing the Application | + | ==== Managing the Application ==== |
When the module being edited is an application, | When the module being edited is an application, | ||
Ligne 232: | Ligne 232: | ||
</ | </ | ||
- | ===== Getting around using Explorer | + | ==== Getting around using Explorer ==== |
The second page of the Editor notebook contains a page called the Explorer. You use this page to browse various data sources including the filesystem, CVS, Zope, WebDAV, SSH accounts, FTP. | The second page of the Editor notebook contains a page called the Explorer. You use this page to browse various data sources including the filesystem, CVS, Zope, WebDAV, SSH accounts, FTP. | ||
Ligne 244: | Ligne 244: | ||
If you are using Zope, you can access projects in your Zope Server using the Zope option. The default TCP/IP connection information is configured in the Inspector pane or in your Explorer configuration file, Explorer.msw.cfg on Windows or Explorer.gtk.cfg on UNIX. | If you are using Zope, you can access projects in your Zope Server using the Zope option. The default TCP/IP connection information is configured in the Inspector pane or in your Explorer configuration file, Explorer.msw.cfg on Windows or Explorer.gtk.cfg on UNIX. | ||
- | {{ fr:logiciel: | + | {{ logiciel: |
It also allows you to access your Preference settings, above the Key bindings are selected in the Explorer and details are shown in the Inspector. | It also allows you to access your Preference settings, above the Key bindings are selected in the Explorer and details are shown in the Inspector. | ||
Ligne 252: | Ligne 252: | ||
</ | </ | ||
- | ===== Using Help ===== | + | ==== Using Help ==== |
The Boa Constructor environment provides links to different help files from your environment. | The Boa Constructor environment provides links to different help files from your environment. | ||
Ligne 289: | Ligne 289: | ||
* Or mail your question to [[wxPython-users@lists.wxwidgets.org]] if they are not Boa specific | * Or mail your question to [[wxPython-users@lists.wxwidgets.org]] if they are not Boa specific | ||
- | ====== Tutoriel - Création de notre première application | + | ===== Tutoriel - Création de notre première application ===== |
Cette section présente un bref tutoriel. Le but de ce tutoriel est de vous familiariser avec l' | Cette section présente un bref tutoriel. Le but de ce tutoriel est de vous familiariser avec l' | ||
Ligne 302: | Ligne 302: | ||
* Concevoir vos propres boîtes de dialogue. | * Concevoir vos propres boîtes de dialogue. | ||
- | ===== Création d'une nouvelle application | + | ==== Création d'une nouvelle application ==== |
* Choisir un répertoire pour l' | * Choisir un répertoire pour l' | ||
* Créer une nouvelle application avec le bouton de la palette **Nouvelle l' | * Créer une nouvelle application avec le bouton de la palette **Nouvelle l' | ||
- | {{ fr:logiciel: | + | {{ logiciel: |
* Enregistrer les fichiers **App1.py** et **Frame1.py** dans le répertoire créé plus haut. Vous pouvez utiliser le bouton < | * Enregistrer les fichiers **App1.py** et **Frame1.py** dans le répertoire créé plus haut. Vous pouvez utiliser le bouton < | ||
Ligne 320: | Ligne 320: | ||
Un clic sur le bouton << | Un clic sur le bouton << | ||
- | ===== Utilisation de l' | + | ==== Utilisation de l' |
* Sélectionnerz l' | * Sélectionnerz l' | ||
Ligne 330: | Ligne 330: | ||
* Deux nouveaux volets s' | * Deux nouveaux volets s' | ||
* La fenêtre de l' | * La fenêtre de l' | ||
- | * Il faut enregistrer les modifications avec le bouton << | + | * Il faut enregistrer les modifications avec le bouton << |
* La fenêtre de l' | * La fenêtre de l' | ||
* Noter que le code source a été mis à jour pour refléter le titre. | * Noter que le code source a été mis à jour pour refléter le titre. | ||
* L' | * L' | ||
- | ===== Ajouter une barre d' | + | ==== Ajouter une barre d' |
Le premier composant que nous allons ajouter à l' | Le premier composant que nous allons ajouter à l' | ||
Ligne 357: | Ligne 357: | ||
* Cliquer sur le bouton ' | * Cliquer sur le bouton ' | ||
* Éditer le champ texte en changeant le nom << | * Éditer le champ texte en changeant le nom << | ||
- | * La barre d' | + | * La barre d' |
{{ logiciel: | {{ logiciel: | ||
Ligne 367: | Ligne 367: | ||
{{ logiciel: | {{ logiciel: | ||
- | * Mettre à jour les modifications du code source à l'aide des boutons Valider {{fr:logiciel: | + | * Mettre à jour les modifications du code source à l'aide des boutons Valider {{logiciel: |
* Enregistrer les modifications du code source en utilisant le bouton Enregistrer de la barre d' | * Enregistrer les modifications du code source en utilisant le bouton Enregistrer de la barre d' | ||
- | ===== Ajouter une barre de menus ===== | + | ==== Ajouter une barre de menus ==== |
Nous allons maintenant ajouter une barre de menus à l' | Nous allons maintenant ajouter une barre de menus à l' | ||
Ligne 392: | Ligne 392: | ||
* La barre d' | * La barre d' | ||
- | {{ fr:logiciel: | + | {{ logiciel: |
* Dans l' | * Dans l' | ||
Ligne 432: | Ligne 432: | ||
{{ logiciel: | {{ logiciel: | ||
- | ===== Ajout du contrôle texte ===== | + | ==== Ajout du contrôle texte ==== |
La tâche suivante consiste à ajouter du texte principal contrôle d' | La tâche suivante consiste à ajouter du texte principal contrôle d' | ||
Ligne 465: | Ligne 465: | ||
* Les fonctionnalités couper et coller sont également disponibles par défaut, ainsi que le marquage de bloc. | * Les fonctionnalités couper et coller sont également disponibles par défaut, ainsi que le marquage de bloc. | ||
- | ===== Ajout des fonctionnalités du Menu Fichier | + | ==== Ajout des fonctionnalités du Menu Fichier ==== |
La tâche suivante consiste à interagir avec l' | La tâche suivante consiste à interagir avec l' | ||
Ligne 570: | Ligne 570: | ||
{{ logiciel: | {{ logiciel: | ||
- | ===== Créer une fenêtre de dialogue | + | ==== Créer une fenêtre de dialogue ==== |
Les boîtes de dialogue permettent d' | Les boîtes de dialogue permettent d' | ||
Ligne 625: | Ligne 625: | ||
* Concevoir vos propres boîtes de dialogue. | * Concevoir vos propres boîtes de dialogue. | ||
- | ===== Creating an application window using sizers | + | ==== Creating an application window using sizers ==== |
Sizers are a great way to ensure that your GUI layout is nice and clean. They come in especially handy when you do not know exactly how much space a control needs and/or should be allowed to use, this can be the case when you internationalize your application (I18N) or for such controls as lists or grids where you like to give as much space as possible to them (or maybe as little as practical). | Sizers are a great way to ensure that your GUI layout is nice and clean. They come in especially handy when you do not know exactly how much space a control needs and/or should be allowed to use, this can be the case when you internationalize your application (I18N) or for such controls as lists or grids where you like to give as much space as possible to them (or maybe as little as practical). | ||
Ligne 675: | Ligne 675: | ||
* When you run the application you should see something along these lines. | * When you run the application you should see something along these lines. | ||
- | {{ fr:logiciel: | + | {{ logiciel: |
* We will also need some buttons for this, so we can add, delete, save and close this form. | * We will also need some buttons for this, so we can add, delete, save and close this form. | ||
Ligne 693: | Ligne 693: | ||
For coding guide lines you might also want to consult the wxPython style guide [[http:// | For coding guide lines you might also want to consult the wxPython style guide [[http:// | ||
- | ====== Other Useful Items ====== | + | ===== Other Useful Items ===== |
- | ===== Setting Preferences | + | ==== Setting Preferences ==== |
The Boa Constructor tool provides a number of features which can be customised by you. | The Boa Constructor tool provides a number of features which can be customised by you. | ||
Ligne 707: | Ligne 707: | ||
| {{logiciel: | | {{logiciel: | ||
- | ==== Help books ==== | + | === Help books === |
Boa by default includs its help books and the ones for wxPython and Python. | Boa by default includs its help books and the ones for wxPython and Python. | ||
Ligne 715: | Ligne 715: | ||
{{ logiciel: | {{ logiciel: | ||
- | ==== Bookmarks | + | === Bookmarks === |
If you like to add additional bookmarks just right mouse click on the folder you like to add within the Explorer. | If you like to add additional bookmarks just right mouse click on the folder you like to add within the Explorer. | ||
- | ==== Transport | + | === Transport === |
Adding additional transports works similar to the bookmarks, select the transport type on the left hand side of the Explorer view, e.g. ' | Adding additional transports works similar to the bookmarks, select the transport type on the left hand side of the Explorer view, e.g. ' | ||
Ligne 725: | Ligne 725: | ||
{{ logiciel: | {{ logiciel: | ||
- | ==== Module Info ==== | + | === Module Info === |
You might want to change the following section in the file ' | You might want to change the following section in the file ' |