• osamu

    @JonB
    It also worked for geocode nominatim query. Thanks 🙏

    posted in Pythonista read more
  • osamu

    @cvp Yes, it works. Thanks!

    posted in Pythonista read more
  • osamu

    @cvp one last question.
    Can I set the initial year?
    The following does not work.

    class MyUIPickerView(ui.View):
        def __init__(self, data, horiz=False,myRowHeight=100, myDidSelectRow=None, **kwargs):
            super().__init__(**kwargs)
            
            UIPickerView = ObjCClass('UIPickerView')
            self._picker_view = UIPickerView.alloc().initWithFrame_(ObjCInstance(self).bounds()).autorelease()
            ObjCInstance(self).addSubview_(self._picker_view)
           ...
           self._picker_view.selectedRow = XXX
    

    Thanks in advance.

    posted in Pythonista read more
  • osamu

    @JonB That’s a good idea 👍

    posted in Pythonista read more
  • osamu

    @cvp This script initializes the year as 2019. If I set;
    years = [str(y) for y in range(1605,datetime.now().year+1)] + ['----']
    the initial year is set to 1605 and we’re far away from —— and recent years. Can we control this initial value?

    posted in Pythonista read more
  • osamu

    @cvp I got it. Thank you.

    posted in Pythonista read more
  • osamu

    @cvp I tried the first version but Pythonista claimed create_objc_class() is missing. There may be some more. I guess I need to sneak into your library and steal them.

    posted in Pythonista read more
  • osamu

    @cvp said:

    objc.setMaximumDate_(nsDate)

    Thank you, I’m interested in the above attribute.

    posted in Pythonista read more
  • osamu

    @cvp Thank you very much indeed for spending time 🙏
    This picker is the one that shows up when you enter birthday and other dates when using contacts app. I’m going to try your code.

    posted in Pythonista read more
  • osamu

    @cvp thank you.

    what I meant is to enter year 1604 in order to invalidate the year as the following image that I failed to embed:

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!