Wiki

Changes between Version 1 and Version 2 of GtkSimpleWindow

Show
Ignore:
Timestamp:
10/31/11 18:11:51 (13 years ago)
Author:
callisto
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GtkSimpleWindow

    v1 v2  
    77The following program is in two parts:   
    88 
    9 a. The class `MyWindow` will be the main window for the application.  `MyWindow` inherits from the Gtk `Window` class, and the `init` method initialises its parent with the given title.   
     9 1. The class `MyWindow` will be the main window for the application.  `MyWindow` inherits from the Gtk `Window` class, and the `init` method initialises its parent with the given title.   
    1010  * `.setDefaultSize` is called to create a sensible size for the window 
    1111  * `listen` is used to attach a method to the `deleteEvent`, called when the user clicks the close window button.  
    1212 
    13 b. The `main` method in `MainProgram` goes through four stages to create and display a Gtk application:   
     13 2. The `main` method in `MainProgram` goes through four stages to create and display a Gtk application:   
    1414  1. start the graphical application 
    15   2. create an instance of the main window 
    16   3. request all widgets in the main window to show themselves 
    17   4. finally, run the graphical application 
     15  1. create an instance of the main window 
     16  1. request all widgets in the main window to show themselves 
     17  1. finally, run the graphical application 
    1818 
    1919{{{