omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. osamu

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 29
    • Best 0
    • Controversial 0
    • Groups 0

    osamu

    @osamu

    0
    Reputation
    626
    Profile views
    29
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    osamu Unfollow Follow

    Latest posts made by osamu

    • RE: Since IOS 15 requests always gives me an SSL Certificate Error.

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

      posted in Pythonista
      osamu
      osamu
    • RE: Date Picker w/ blank year

      @cvp Yes, it works. Thanks!

      posted in Pythonista
      osamu
      osamu
    • RE: Date Picker w/ blank year

      @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
      osamu
      osamu
    • RE: Date Picker w/ blank year

      @JonB That’s a good idea 👍

      posted in Pythonista
      osamu
      osamu
    • RE: Date Picker w/ blank year

      @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
      osamu
      osamu
    • RE: Date Picker w/ blank year

      @cvp I got it. Thank you.

      posted in Pythonista
      osamu
      osamu
    • RE: Date Picker w/ blank year

      @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
      osamu
      osamu
    • RE: Date Picker w/ blank year

      @cvp said:

      objc.setMaximumDate_(nsDate)

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

      posted in Pythonista
      osamu
      osamu
    • RE: Date Picker w/ blank year

      @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
      osamu
      osamu
    • RE: Date Picker w/ blank year

      @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
      osamu
      osamu