Module cups :: Class Option
[show private | hide private]
[frames | no frames]

Type Option

object --+
         |
        Option


PPD option

A PPD option.
Method Summary
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Instance Variable Summary
list choices: list of the option's choices
boolean conflicted: whether this option is in conflict
string defchoice: the default option choice
string keyword: the option keyword e.g.
string text: the user-presentable option name e.g.
integer ui: the option type; one of PPD_UI_BOOLEAN, PPD_UI_PICKONE, PPD_UI_PICKMANY

Method Details

__init__(...)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides:
__builtin__.object.__init__

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
__builtin__.object.__new__

Instance Variable Details

choices

list of the option's choices
Type:
list
Value:
<attribute 'choices' of 'cups.Option' objects>                         

conflicted

whether this option is in conflict
Type:
boolean
Value:
<attribute 'conflicted' of 'cups.Option' objects>                      

defchoice

the default option choice
Type:
string
Value:
<attribute 'defchoice' of 'cups.Option' objects>                       

keyword

the option keyword e.g. Duplex
Type:
string
Value:
<attribute 'keyword' of 'cups.Option' objects>                         

text

the user-presentable option name e.g. Double-sided printing
Type:
string
Value:
<attribute 'text' of 'cups.Option' objects>                            

ui

the option type; one of PPD_UI_BOOLEAN, PPD_UI_PICKONE, PPD_UI_PICKMANY
Type:
integer
Value:
<attribute 'ui' of 'cups.Option' objects>                              

Generated by Epydoc 2.1 on Sat Nov 10 20:08:41 2007 http://epydoc.sf.net