optparse_required module¶
Module to extend optparse, it add required options and new types to use into gui module.
Classes:
- class pymodis.optparse_required.OptionParser(**kwargs)[source]¶
- Bases: - OptionParser- Extend optparse.OptionParser 
- class pymodis.optparse_required.OptionWithDefault(*opts, **attrs)[source]¶
- Bases: - Option- Extend optparse.Option add required to the attributes and some new types for the GUI - ATTRS = ['action', 'type', 'dest', 'default', 'nargs', 'const', 'choices', 'callback', 'callback_args', 'callback_kwargs', 'help', 'metavar', 'required']¶
 - TYPES = ('string', 'int', 'long', 'float', 'complex', 'choice', 'file', 'output', 'directory')¶
 
optparse_gui module¶
A drop-in replacement for optparse (“import optparse_gui as optparse”) Provides an identical interface to optparse(.OptionParser), But displays an automatically generated wx dialog in order to enter the options/args, instead of parsing command line arguments
Classes:
Functions:
- class pymodis.optparse_gui.Option(*opts, **attrs)[source]¶
- Bases: - Option- Extended optparse.Option class - ACTIONS = ('store', 'store_const', 'store_true', 'store_false', 'append', 'append_const', 'count', 'callback', 'help', 'version', 'group_name')¶
 - ATTRS = ['action', 'type', 'dest', 'default', 'nargs', 'const', 'choices', 'callback', 'callback_args', 'callback_kwargs', 'help', 'metavar', 'required']¶
 - TYPED_ACTIONS = ('store', 'append', 'callback', 'group_name')¶
 - TYPES = ('string', 'int', 'long', 'float', 'complex', 'choice', 'file', 'output', 'directory', 'group_name')¶
 
- class pymodis.optparse_gui.OptionParser(*args, **kwargs)[source]¶
- Bases: - OptionParser- Extended optparse.OptionParser to create the GUI for the module - SUPER¶
- alias of - OptionParser
 
- class pymodis.optparse_gui.OptparseDialog(optParser, title, parent=None, ID=0, pos=wx.Point(-1, -1), size=wx.Size(-1, -1), style=536877120)[source]¶
- Bases: - Dialog- The dialog presented to the user with dynamically generated controls, to fill in the required options. - Parameters:
 - Based on the wx.Dialog sample from wx Docs & Demos 
 pyModis
 pyModis