omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    UI datepicker problem

    Pythonista
    ui.datepicker
    2
    2
    1937
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • KevinKarney
      KevinKarney last edited by

      I have a UI datepicker object which shows today's date on starting the dialog. If it has been moved to a different date, can I reset it (with a button) back to today's date. Whatever I try, I get '_ui.View object does not support item reassignment'

      Does anyone know a way to set this picker back to its initial state???

      Any help greatly appreciated - I am struggling a bit

      Kevin

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        What did you try? This works for me:

        >>> d=ui.UIDatePicker
        >>> d.date=datetime.datetime(2015,9,2,4,4,4)
        >>> d.date
        datetime.datetime(2015, 9, 2, 4, 4, 4)
        
        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Powered by NodeBB Forums | Contributors