• brumm

    I‘ve just updated my Three-Cloumn-Sortable-TableView-Example. Maybe some parts are useful.

    posted in Pythonista read more
  • brumm

    MyVocabTrainer has reached a beta phase. If there is no need for a second keyboard layout, you can easily comment line 466 # russian_keyboard.SetTextFieldPad(self.view['textfield2']) # out. The database structure you can find in the lines 210 to 230. The Import/Export section is not ready yet, stay tuned.

    posted in Pythonista read more
  • brumm

    MyVocabTrainer

    Far away from being finished. Ugly code and only for fixed iPad 768x1024 resolution.

    posted in Pythonista read more
  • brumm

    Wow! Thank you so much. Looks awesome.
    @cvp Btw. would it be okay for you, if I upload my VocabularyTrainer with your code to Github? Or can I put a link to your gist in my future repository?

    posted in Pythonista read more
  • brumm

    Same here. Workaround -> you can use Shortcuts > run pythonista > /path/script.py > share > homescreen

    posted in Pythonista read more
  • brumm

    You might want to check the TextView. There is also a post about “search and selecting“ in this forum (i saw it a while ago).

    select

    posted in Pythonista read more
  • brumm

    @cvp That is very kind of you, no hurry. I‘m not started coding. First I will design the Views and database structure.

    posted in Pythonista read more
  • brumm

    I thought there is an easy solution, but that is also great, because when you fill the db you don‘t need to change it all the time. Now I‘m missing some keys like space, shift, minus, exclamation mark. Where i can find the right syntax?

    posted in Pythonista read more
  • brumm

    Looks great, спасибо.

    posted in Pythonista read more
  • brumm

    Again thank you.

    posted in Pythonista read more
  • brumm

    Btw. thank you and don‘t worry i can live without it. i just wanna know if it‘s possible or not.

    posted in Pythonista read more
  • brumm

    @cvp said:

    criteria

    The criteria would be the selection of the text field (language l or c). E.g. first the Latin word and then in the next text field the Cyrillic word. Something with _begin_editing ...

    posted in Pythonista read more
  • brumm

    @cvp yes, you‘ve got me right. I just do not want to press the globe (too lazy 😊).

    posted in Pythonista read more
  • brumm

    Hello all, is it possible to change the keyboard language? I like to program a vocabulary trainer and like to switch automatically between a Cyrillic and a Latin keyboard layout, while entering the input text field.

    posted in Pythonista read more
  • brumm

    setup() is only called once. You might like to call a function/method for changed values. Search for Slider Attributes => Slider.action

    not tested:

    def setup(self):
            slider = self.view.superview['slider1']
            slider.action = self.slider_changed
    
    def slider_changed(self, sender):
            print(sender.value)
    

    posted in Pythonista read more
  • brumm

    First letter a small „i“ and the second letter is any other small letter. In my example = ['is', 'is', 'ia', 'in']

    posted in Pythonista read more
  • brumm

    Settings > Discord > Open Pyto

    posted in Pythonista read more
  • brumm

    class User_Input_Date():
        def __init__(self):
    
            self.month_input = input('What was the month (1-12)')
            if self.month_input in ['01', '1', 'Jan', 'January', 'jan', 'january']:
                self.month_input = 1
            elif self.month_input in ['02', '2', 'Feb', 'February', 'feb', 'february']:
                self.month_input = 2
            elif self.month_input in ['03', '3', 'Mar', 'March', 'mar', 'march']:
                self.month_input = 3
            else:
                self.month_input = None
            self.year_input = int(input('What was the year?'))
            
        def printDate(self):
            print(f'year = {self.year_input} month = {self.month_input}')
            
    primary_bariatric_date = User_Input_Date()
    primary_bariatric_date.printDate()
    

    You store the variables with self.name instead returning it.

    posted in Pythonista read more
  • brumm

    
    button1.frame = (x, y,width,height)
    button2.frame = (x, y,width,height)
    
    v.add_subview(button1)
    v.add_subview(button2)
    

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!