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.
Pythonista "rename" icon?
-
Silly little question: I love that pythonista ships with a couple big sets of nice open-source icon libraries, but there's one icon that shows up in the pythonista interface, which I don't see in those sets...but which I'd love to be able to use.
It's the little "rename" icon which shows up any time you can edit the name of a file by tapping the title in the editor view. Small insertion caret with ellipsis inside a box. Anyone know if that icon is available somehow? Or if the actual graphics of pythonista's icons are accessible somewhere? I've searched for that same icon online, but can't find it.
-
@shinyformica not sure it is an icon. I think it is a button with title of special characters.
3 first are bullets, not yet found the caret/cursor one.
Seeimport ui v = ui.View() v.background_color = 'white' b = ui.Button() b.frame = (50,50,30,20) b.title = '\u2022\u2022\u2022' # bullet characters b.border_width = 1 b.corner_radius = 5 v.add_subview(b) v.present()
-
Try to look for a rename png file like in here:
import os pythonistaDir = os.path.abspath(os.path.join(os.__file__, '../../../..')+'/EditorActionIcons') print(os.listdir(pythonistaDir))
-
@pulbrich I think they are icons visible in the editor via + button and I never have seen the rename one
-
I really think it is not an I icon because it does not have the same dimension as icons.
If left is 10, right is 11...
-
Try
import ui v = ui.View() v.background_color = 'white' b1 = ui.Button() b1.frame = (50,50,32,32) b1.tint_color = 'black' b1.image = ui.Image.named('iob:ios7_folder_outline_32') v.add_subview(b1) b2 = ui.Button() d = 18 b2.frame = (90,50+(32-d)/2,30,d) b2.font = ('Apple Symbols',d-4) b2.title = '•••𝙸' # bullets (\u2022) and cursor (b'\\U0001d678') b2.border_width = 1 b2.corner_radius = 5 v.add_subview(b2) v.present()