wxDateTime

Hi

Am I missing something?

        a = wx.DateTime()
       print a.Today()

gives me an error
AttributeError: wxDateTime instance has no attribute 'Today'

Any of the attributes listed in the wxWindows docs gives me the same error

Something as simple as this shouldn't be stumping me, but it is. Can anyone help?

Mike

Try this:

from wxPython.wx import *

a = wxDateTime_Now()

print a

11/13/03 10:04:56

···

-----Ursprüngliche Nachricht-----
Von: Mike Edmonds [mailto:mikee@miva-ltd.com]
Gesendet: Donnerstag, 13. November 2003 09:55
An: wxPython-users@lists.wxwindows.org
Betreff: [wxPython-users] wxDateTime

Hi

Am I missing something?

        a = wx.DateTime()
       print a.Today()

gives me an error
AttributeError: wxDateTime instance has no attribute 'Today'

Any of the attributes listed in the wxWindows docs gives me the same error

Something as simple as this shouldn't be stumping me, but it is. Can anyone
help?

Mike

Sorry, this is what you need:
      

from wxPython.wx import *

a = wxDateTime_Today()

a

<wxDateTime: "11/13/03 00:00:00" at _964400_wxDateTime_p>

See utils.py
Oliver

···

-----Ursprüngliche Nachricht-----
Von: Mike Edmonds [mailto:mikee@miva-ltd.com]
Gesendet: Donnerstag, 13. November 2003 09:55
An: wxPython-users@lists.wxwindows.org
Betreff: [wxPython-users] wxDateTime

Hi

Am I missing something?

        a = wx.DateTime()
       print a.Today()

gives me an error
AttributeError: wxDateTime instance has no attribute 'Today'

Any of the attributes listed in the wxWindows docs gives me the same error

Something as simple as this shouldn't be stumping me, but it is. Can anyone
help?

Mike

Thanks Oliver
There is a lot to learn, isn't there?

···

----- Original Message -----
From: "Oliver Walczak" <oliver.walczak@momatec.de>
To: <wxPython-users@lists.wxwindows.org>
Sent: Thursday, November 13, 2003 10:17 PM
Subject: AW: [wxPython-users] wxDateTime

Sorry, this is what you need:

from wxPython.wx import *

a = wxDateTime_Today()

a

<wxDateTime: "11/13/03 00:00:00" at _964400_wxDateTime_p>

See utils.py
Oliver

-----Ursprüngliche Nachricht-----
Von: Mike Edmonds [mailto:mikee@miva-ltd.com]
Gesendet: Donnerstag, 13. November 2003 09:55
An: wxPython-users@lists.wxwindows.org
Betreff: [wxPython-users] wxDateTime

Hi

Am I missing something?

        a = wx.DateTime()
       print a.Today()

gives me an error
AttributeError: wxDateTime instance has no attribute 'Today'

Any of the attributes listed in the wxWindows docs gives me the same error

Something as simple as this shouldn't be stumping me, but it is. Can anyone
help?

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org