All pastes #772776 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-11-14 01:36 UTC
rendered paste body
    def __init__(self, parent, application, **kw):
        minical.PyMiniCalendar.__init__(self, parent, id=-1)
        minicalendar = application.minicalendar
        cells = trellis.Cells(minicalendar)
        app_cells = trellis.Cells(application)
        trellis.Component.__init__(self,
                                   months_displayed = cells['months_displayed'],
                                   firstVisibleDate = cells['range_start'],
                                   busy_months = minicalendar.months,
                                   active_view = app_cells['active_view'],
                                   filter = app_cells['filter'],
                                   selectedDate = app_cells['selected_date'],
                                   **kw)
        
        #minicalendar.months_displayed = self.__cells__['months_displayed']
        #minicalendar.range_start = self.__cells__['firstVisibleDate']

        # on Linux, because there are no borders around windows, we
        # want a line separating the minicalendar and preview area,
        # bug 4273.  On Mac, the preview area and the minicalendar
        # don't have their own borders, so also draw the line.
        self.lineAboveToday = not wx.Platform == "__WXMSW__"

        self.Bind(minical.EVT_MINI_CALENDAR_DOUBLECLICKED,
                  self.OnWXDoubleClick)
        self.Bind(minical.EVT_MINI_CALENDAR_SEL_CHANGED,
                  self.OnWXSelectItem)