Mailing list archives: November 2007

Site index · List index
Message listThread · Author · Date
ja...@wordzoo.com lectedDate(), + 'item': self.blockItem }) + + def getSelectedDate(self): + wxdate = self.GetDate() + mxdate = DateTime.DateTime(wxdate.GetYear(), + wxdate.GetMonth() + 1, + wxdate.GetDay()) + return mxdate + + def setSelectedDate(self, mxdate): + wxdate = wx.DateTimeFromDMY(mxdate.day, + mxdate.month - 1, + mxdate.year) + self.SetDate(wxdate) + + + def setSelectedDateRange(self, mxstart, mxend): + self.resetMonth() + self.setSelectedDate(mxstart) + + if (mxstart.month != mxend.month): + endday = mxstart.days_in_month + 1 + else: + endday = mxend.day + 1 + + for day in range(mxstart.day, endday): + attr = wx.CalendarDateAttr(wx.WHITE, wx.BLUE, wx.WHITE, + wx.SWISS_FONT) + self.SetAttr(day, attr) + + today = DateTime.today() + if ((today.year == mxstart.year) and (today.month == mxstart.month)): + self.SetHoliday(today.day) + + self.Refresh() + + def resetMonth(self): + for day in range(1,32): + self.ResetAttr(day) + +class MiniCalendar(Block.RectangularChild): + def __init__(self, *arguments, **keywords): + super (MiniCalendar, self).__init__(*arguments, **keywords) + + def instantiateWidget(self): + return wxMiniCalendar(self.parentBlock.widget, + Block.Block.getWidgetID(self)) + + def onSelectedDateChangedEvent(self, notification): + self.widget.setSelectedDate(notification.data['start']) Thu, 24 Apr, 14:24
m.@osafoundation.org> + def setSelectedDate(self, mxdate): + wxdate = wx.DateTimeFromDMY(mxdate.day, + mxdate.month - 1, + mxdate.year) + self.SetDate(wxdate) + + + def setSelectedDateRange(self, mxstart, mxend): + self.resetMonth() + self.setSelectedDate(mxstart) + + if (mxstart.month != mxend.month): + endday = mxstart.days_in_month + 1 + else: + endday = mxend.day + 1 + + for day in range(mxstart.day, endday): + attr = wx.CalendarDateAttr(wx.WHITE, wx.BLUE, wx.WHITE, + wx.SWISS_FONT) + self.SetAttr(day, attr) + + today = DateTime.today() + if ((today.year == mxstart.year) and (today.month == mxstart.month)): + self.SetHoliday(today.day) + + self.Refresh() + + def resetMonth(self): + for day in range(1,32): + self.ResetAttr(day) + +class MiniCalendar(Block.RectangularChild): + def __init__(self, *arguments, **keywords): + super (MiniCalendar, self).__init__(*arguments, **keywords) + + def instantiateWidget(self): + return wxMiniCalendar(self.parentBlock.widget, + Block.Block.getWidgetID(self)) + + def onSelectedDateChangedEvent(self, notification): + self.widget.setSelectedDate(notification.data['start']) Mon, 03 May, 09:42
<...@osafoundation.org> me.today() + if ((today.year == mxstart.year) and (today.month == mxstart.month)): + self.SetHoliday(today.day) + + self.Refresh() + + def resetMonth(self): + for day in range(1,32): + self.ResetAttr(day) + +class MiniCalendar(Block.RectangularChild): + def __init__(self, *arguments, **keywords): + super (MiniCalendar, self).__init__(*arguments, **keywords) + + def instantiateWidget(self): + return wxMiniCalendar(self.parentBlock.widget, + Block.Block.getWidgetID(self)) + + def onSelectedDateChangedEvent(self, notification): + self.widget.setSelectedDate(notification.data['start']) Tue, 12 May, 17:36
alendarDateAttr(wx.WHITE, wx.BLUE, wx.WHITE, + wx.SWISS_FONT) + self.SetAttr(day, attr) + + today = DateTime.today() + if ((today.year == mxstart.year) and (today.month == mxstart.month)): + self.SetHoliday(today.day) + + self.Refresh() + + def resetMonth(self): + for day in range(1,32): + self.ResetAttr(day) + +class MiniCalendar(Block.RectangularChild): + def __init__(self, *arguments, **keywords): + super (MiniCalendar, self).__init__(*arguments, **keywords) + + def instantiateWidget(self): + return wxMiniCalendar(self.parentBlock.widget, + Block.Block.getWidgetID(self)) + + def onSelectedDateChangedEvent(self, notification): + self.widget.setSelectedDate(notification.data['start'])
sut   alendarDateAttr(wx.WHITE, wx.BLUE, wx.WHITE, + wx.SWISS_FONT) + self.SetAttr(day, attr) + + today = DateTime.today() + if ((today.year == mxstart.year) and (today.month == mxstart.month)): + self.SetHoliday(today.day) + + self.Refresh() + + def resetMonth(self): + for day in range(1,32): + self.ResetAttr(day) + +class MiniCalendar(Block.RectangularChild): + def __init__(self, *arguments, **keywords): + super (MiniCalendar, self).__init__(*arguments, **keywords) + + def instantiateWidget(self): + return wxMiniCalendar(self.parentBlock.widget, + Block.Block.getWidgetID(self)) + + def onSelectedDateChangedEvent(self, notification): + self.widget.setSelectedDate(notification.data['start']) Fri, 06 Mar, 15:55
Message listThread · Author · Date
Box list
Jan 20084
Dec 20073
Nov 20074
Aug 200711
Jul 20074
Jun 20074
May 200790
Apr 200730
Mar 20071
Feb 20072
Jan 20073
Dec 20061
Nov 200610
Oct 200621
Sep 200610
Aug 200612
Jul 200623
Jun 20062