Just a little thing I know, but...
Is it possible to mute top keys and code completion sounds without poke the vibrate switch?
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.
Best posts made by Balur
-
Mute top keys and code completion sounds, is it possible?
-
RE: How can I get console width?
I think I got the missing piece. After a little testing it seems the default console font is Menlo, 14.
import ui def getConsoleWidth(font=('Menlo',14)): screenWidth = ui.get_screen_size().width charWidth = ui.measure_string('.',font=font).width return int(screenWidth / charWidth-1.5)
I'm not sure why subtract by 1.5 exactly, but I think console margin have something to do with it. Tested on my iphone and ipad mini, both orientations.
-
How can I get console width?
Hi Guys,
I'm new here and new to Python language also.
Is there any working way to get console width in Pythonista? I mean in character count in one row, like 40 or 36.