Gnumed.timelinelib.config.dotfile.Config

Package Gnumed :: Package timelinelib :: Package config :: Module dotfile :: Class Config |
[frames] | no frames]

# Class Config

source code

    object --+
             |
            Config

Provide read and write access to application configuration settings.

Built as a wrapper around ConfigParser: Properties exist to read and write values but ConfigParser does the actual reading and writing of the configuration file.

Instance Methods
__init__(self, path) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
read(self) Read settings from file specified in constructor. | source code
write(self) Write settings to file specified in constructor and raise IOError if failed. | source code
get_window_size(self) | source code
set_window_size(self, size) | source code
get_window_pos(self) | source code
set_window_pos(self, pos) | source code
get_window_maximized(self) | source code
set_window_maximized(self, maximized) | source code
get_show_sidebar(self) | source code
set_show_sidebar(self, show) | source code
get_show_legend(self) | source code
set_show_legend(self, show) | source code
get_sidebar_width(self) | source code
set_sidebar_width(self, width) | source code
get_recently_opened(self) | source code
append_recently_opened(self, path) | source code
get_open_recent_at_startup(self) | source code
set_open_recent_at_startup(self, open) | source code
get_balloon_on_hover(self) | source code
set_balloon_on_hover(self, balloon_on_hover) | source code
get_week_start(self) | source code
set_week_start(self, week_start) | source code
get_use_wide_date_range(self) | source code
set_use_wide_date_range(self, value) | source code
get_use_inertial_scrolling(self) | source code
set_use_inertial_scrolling(self, value) | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties
| window_size
| window_pos
| window_maximized
| show_sidebar
| show_legend
| sidebar_width
| recently_opened
| open_recent_at_startup
| balloon_on_hover
| week_start
| use_wide_date_range
| use_inertial_scrolling
Inherited from `object`: `__class__`

Method Details

### __init__(self, path) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)

Property Details

### window_size Get Method: get_window_size(self) Set Method: set_window_size(self, size)

### window_pos Get Method: get_window_pos(self) Set Method: set_window_pos(self, pos)

### window_maximized Get Method: get_window_maximized(self) Set Method: set_window_maximized(self, maximized)

### show_sidebar Get Method: get_show_sidebar(self) Set Method: set_show_sidebar(self, show)

### show_legend Get Method: get_show_legend(self) Set Method: set_show_legend(self, show)

### sidebar_width Get Method: get_sidebar_width(self) Set Method: set_sidebar_width(self, width)

### recently_opened Get Method: get_recently_opened(self)

### open_recent_at_startup Get Method: get_open_recent_at_startup(self) Set Method: set_open_recent_at_startup(self, open)

### balloon_on_hover Get Method: get_balloon_on_hover(self) Set Method: set_balloon_on_hover(self, balloon_on_hover)

### week_start Get Method: get_week_start(self) Set Method: set_week_start(self, week_start)

### use_wide_date_range Get Method: get_use_wide_date_range(self) Set Method: set_use_wide_date_range(self, value)

### use_inertial_scrolling Get Method: get_use_inertial_scrolling(self) Set Method: set_use_inertial_scrolling(self, value)