Changes between Version 1 and Version 2 of Submitting/wxGUI


Ignore:
Timestamp:
Jun 11, 2014, 8:27:57 PM (10 years ago)
Author:
wenzeslaus
Comment:

fix formatting

Legend:

Unmodified
Added
Removed
Modified
  • Submitting/wxGUI

    v1 v2  
    66directory.
    77
    8 3. Remember that functionality such as generating plots should be primarily
     8Remember that functionality such as generating plots should be primarily
    99provided by library or modules not GUI.
    1010
    11 
    12 4. Try to create create also g.gui.* module for the new GUI component. It helps
     11Try to create create also `g.gui.*` module for the new GUI component. It helps
    1312advanced users to access functionality and developers to test it. Moreover,
    1413it helps to keep components separated and thus, it supports re-usability.
     
    1615== File structure ==
    1716
    18 5. Add a header section to each file you submit and make sure you
     17Add a header section to each file you submit and make sure you
    1918include the copyright. The purpose section is meant to contain a
    2019general over view of the code in the file to assist other
     
    2928#!python
    3029    """!
    31     @package dir.example
     30@package dir.example
    3231
    33     @brief Short example package description
     32@brief Short example package description
    3433
    35     Classes:
    36      - example::ExampleClass
     34Classes:
     35 - example::ExampleClass
    3736
    38     (C) 2012 by the GRASS Development Team
     37(C) 2012 by the GRASS Development Team
    3938
    40     This program is free software under the GNU General Public License
    41     (>=v2). Read the file COPYING that comes with GRASS for details.
     39This program is free software under the GNU General Public License
     40(>=v2). Read the file COPYING that comes with GRASS for details.
    4241
    43     @author First Author <first somewhere.com>
    44     @author Second Author <second somewhere.com>
    45     @author Some Other <third somewhere.com> (some particular change)
    46     """
     42@author First Author <first somewhere.com>
     43@author Second Author <second somewhere.com>
     44@author Some Other <third somewhere.com> (some particular change)
     45"""
    4746}}}
    4847
    4948== Documentation and comments ==
    5049
     50When using class Signal from `grass.pydispatch.signal`, write a short description to as a constructor parameter and describe implementation details in standard comments
     51before the definition. Note the signal in each function which is invoking it.
    5152
    5253== Writing the code ==
     
    5455Do not use print command unless you know what are you doing.
    5556
    56 Use wx.ID_ANY instead of `-1`.
     57Use `wx.ID_ANY` instead of `-1`.
    5758
    58 Use GError, GWarning and GMessage instead of wx.MessageBox()
     59Use `GError`, `GWarning` and `GMessage` instead of `wx.MessageBox()`
    5960
    60 Do not use grass.run_command() or grass.read_command().
    61 Use functions and classes which use threads such as RunCommand.
     61Do not use `grass.run_command()` or `grass.read_command()`.
     62Use functions and classes which use threads such as `RunCommand`.
    6263
    63 When using AddGrowableCol/AddGrowableRow with sizers, put it after
     64When using `AddGrowableCol` and/or `AddGrowableRow` with sizers, put it after
    6465adding widgets into the sizer, not just after creating of the sizer
    6566(needed for wxPython >= 2.9).
     
    6970== See also ==
    7071
    71 === Related submitting rules ==
     72=== Related submitting rules ===
    7273
    7374 * wiki:Submitting/General general GRASS and svn instructions