def __init__(self): Observable.__init__(self) self._build_property("legend_visible", True) self._build_property("balloons_visible", True) self._build_property("hide_events_done", False) self._build_property("minor_strip_divider_line_colour", (200, 200, 200)) self._build_property("major_strip_divider_line_colour", (200, 200, 200)) self._build_property("now_line_colour", (200, 0, 0)) self._build_property("weekend_colour", (255, 255, 255)) self._build_property("bg_colour", (255, 255, 255)) self._build_property("colorize_weekends", False) self._build_property("draw_period_events_to_right", False) self._build_property("text_below_icon", False) self._build_property("minor_strip_font", Font(8).serialize()) self._build_property("major_strip_font", Font(12, weight=wx.FONTWEIGHT_BOLD).serialize()) self._build_property("legend_font", Font(8).serialize()) self._build_property("balloon_font", Font(8).serialize()) self._build_property("center_event_texts", False) self._build_property("never_show_period_events_as_point_events", False) self._build_property("week_start", "monday") self._build_property("use_inertial_scrolling", False) self._build_property("fuzzy_icon", "fuzzy.png") self._build_property("locked_icon", "locked.png") self._build_property("hyperlink_icon", "hyperlink.png") self._build_property("vertical_space_between_events", 5) self._build_property("skip_s_in_decade_text", False) self._build_property("display_checkmark_on_events_done", False) self._build_property("never_use_time", False) self._build_property("legend_pos", 0)
def __init__(self): Observable.__init__(self) self.view_width = 0 self.view_height = 0 self.categories = None self.collapsed_category_ids = [] self.items = []
def __init__(self, initial_value, initial_name="", history_size=10): Observable.__init__(self) if history_size < 1: raise ValueError("history_size is to small (must be at least 1)") self._history_size = history_size self._history = [(initial_name, initial_value)] self._current_index = 0 self._current_transaction = None
def __init__(self): Observable.__init__(self) self._id_counter = 0 self._transactions = Transactions(ImmutableDB()) self._transactions.listen_for_any(self._transaction_committed) self.path = "" self.displayed_period = None self._hidden_category_ids = [] self.time_type = GregorianTimeType() self.saved_now = self.time_type.now() self.readonly = False self._save_callback = None self._should_lock = False self._current_query = None
def __init__(self): Observable.__init__(self) self.sticky_balloon_event_ids = [] self.hovered_event = None self.selected_event_ids = [] self._hidden_category_ids = [] self.period_selection = None self.divider_position = 0.5 self.displayed_period = None self.hscroll_amount = 0 self.view_cats_individually = False self.fixed_event_vertical_pos = False self.fuzzy_icon = None self.locked_icon = None self.hyperlink_icon = None self.skip_s_in_decade_text = False self.display_checkmark_on_events_done = False self.legend_pos = 0 self._hide_events_done = False self._all_events = [] self._event_highlight_counters = {} self._selection_rect = None
def __init__(self, parent): Observable.__init__(self) self.timer = wx.Timer(parent) parent.Bind(wx.EVT_TIMER, self._timer_tick, self.timer)
def __init__(self, item_dicts): Observable.__init__(self) self._config_parser = SafeConfigParser() self._build(item_dicts)
def __init__(self, db, view_properties): Observable.__init__(self) self.db = db self.view_properties = view_properties self.db.listen_for_any(self._notify) self.view_properties.listen_for_any(self._notify)
def __init__(self, path): Observable.__init__(self) self.path = path self.config_parser = ConfigParser(DEFAULTS)