Cant find wxMSW, trivial but I am stuck

HI,

I am creating a calendar with wx.calendar.CalendarCtrl(self, style=

I need the wxMSW style but wx.MSW, wx.wxMSW, wx.calendar.MSW,
wx.calendar.wxMSW all say the object does not have this attribute.

I know its trivial but I am a little stuck, can anyone help ?

Cheers

Dave

···

--

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Hi Dave,

HI,

I am creating a calendar with wx.calendar.CalendarCtrl(self, style=

I need the wxMSW style but wx.MSW, wx.wxMSW, wx.calendar.MSW,
wx.calendar.wxMSW all say the object does not have this attribute.

Are you sure you're using the right style?

http://www.wxpython.org/docs/api/wx.calendar.CalendarCtrl-class.html

Here's a quick example -
http://www.python-forum.org/pythonforum/viewtopic.php?f=4&t=22561

I know its trivial but I am a little stuck, can anyone help ?

HTH a little.

Cheers,
Scott.

···

On Sat, Mar 31, 2012 at 3:10 PM, dave selby <dave6502@gmail.com> wrote:

Cheers

Dave

--

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Hi Scott,

Thanks for replying.

Are you sure you're using the right style?

I had a look at the links but this is something different, I am never
terribly good at explaining myself but about half way down the
following wxPython page ...

http://xoomer.virgilio.it/infinity77/wxPython/calendar/wx.calendar.CalendarCtrl.html?highlight=calendarctrl

under control appearance, am trying to get the wxMSW appearance. I am running XP

Any idea how to get that ?

Thanks

Dave

Doh ... sometimes I am just so slow, you dont get to change to the
said styles, they are what you get dependent on the platform ... I
just needed to tweak it with

   data4 = wxcalendar.CalendarCtrl(self, style =
wxcalendar.CAL_SEQUENTIAL_MONTH_SELECTION |
        wx.calendar.CAL_SHOW_SURROUNDING_WEEKS | wx.calendar.CAL_SHOW_HOLIDAYS)

And I am there :slight_smile:

Will go and have a little lie down

Thanks

Dave