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.
Long press Action
-
Does Button View support long press action? If not, very much hope to add this feature. Thanks.
-
-
@cvp, thought there might be some issue with the interaction of the built-in click and the added gesture, but no, works fine:
import ui import gestures def action(sender): sender.title = 'Clicked' b = ui.Button( background_color='white', tint_color='black', action=action) def longpressed(data): if data.began: data.view.title = 'Longpressed' gestures.long_press(b, longpressed) b.present('fullscreen')
-
@mikael I know that I have already used gestures with long press but not sure it was with a button, but I was confident ๐
-
@cvp Thank you๏ผ
-
-
@mikael Thank you! Your Modules are amazing๏ผ
-
@cvp Yes it's really amazing