Re: [datetime] wx, python, sqlalchemy

Werner <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
On 2/17/2015 4:49, [email protected] wrote:
> I need to get a Date from a wx.DatePickerCtrl and store it as
> sqlalchemy.Date.
>
> How can I do this without tricks? Aren't there converting methods
> inbuild. I wonder that this doesn't work
>
> wxdate = wx.DateTime()
> pdate = datetime(wxdate)
> sqldate = sqlalchemy.Date(wxdate)
>
> I have found this post about it that Robin planed to
> change something about it.
> <http://wxpython-users.1045709.n5.nabble.com/wx-DateTime-python-datetime-tp2357748p2357749.html>
They are in Phoenix, not sure if they made it into classic.

You could also create a MyDatePickerCtrl which inherits from 
DatePickerCtrl and then implement these methods in there.

Werner

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.