-
brumm
You can make your own Button/View and use the methods touch_began(), touch_ended() and a timer. example You maybe also need @ui.in_background.
-
brumm
I‘ve just updated my Three-Cloumn-Sortable-TableView-Example. Maybe some parts are useful.
-
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.
-
brumm
Far away from being finished. Ugly code and only for fixed iPad 768x1024 resolution.
-
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? -
brumm
Same here. Workaround -> you can use Shortcuts > run pythonista > /path/script.py > share > homescreen
-
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).
-
brumm
@cvp That is very kind of you, no hurry. I‘m not started coding. First I will design the Views and database structure.
-
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?
-
-
-
brumm
Btw. thank you and don‘t worry i can live without it. i just wanna know if it‘s possible or not.
-
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 ...
-
brumm
@cvp yes, you‘ve got me right. I just do not want to press the globe (too lazy 😊).
-
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.
-
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)
-
brumm
First letter a small „i“ and the second letter is any other small letter. In my example = ['is', 'is', 'ia', 'in']
-
-
-
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.