- Home
- Pythonista
Pythonista
-
Bug list for beta release 160037
bug 160037 160036 beta 2.0 • posted73
Posts5350
ViewsJonB
@JonB
in 2.0: (starting to update the running list as these are tested in 2.0)
* Deleting editor actions (from wrench) crashes pythonista in ios8.4.1 on ipad3.
* Copying from console does not work reliably if keyboard is shown (copy option is not shown, only paste. Can always be reproduced if opening s single wuote in console input, then trying to copy console output, but occurs in other situations as well) -
Wish list for next release
posted8
Posts358
ViewsShunS
@ccc I still cannot do it...
I do the following, but nothing happens.
[Tap +] > [/ is displayed, along with % and etc.] > [swipe up on /] -
Pythonista-Tools is now open for collaboration -- Please join the effort
posted6
Posts277
Viewsmarcus67
@ccc Opened an issue for my three Pythonista apps.
-
Pythonista 2 Release
posted31
Posts1571
ViewsPhuket2
I will point out I also had a seamless upgrade from 1.6 -> 2.0, except from what the guys have already mentioned above about it not appearing as update, I had to go to the product on the Apple Store. I even had 1.6 running in the background when I did the update 😱 If I had remembered I would have closed it down. But it's amazing how far installers have come over the years.
-
[Share Code] Tool to synchronize with a WebDav server
webdav git share • posted26
Posts1289
Viewsmarcus67
@mikael I've just tried the console and the GUI version. They both worked for me. Still, to be sure I've updated the self-extracting archive. Please, do as follows: install the latest archive, go to log.py and set the debugging level to DEBUG. Start gitsynchista with your configuration file as parameter. If the trouble persists send the logging output to marcus.rickert@web.de. Thanks!
-
Inheritance and **kwargs popping/consumption
posted6
Posts131
ViewsJonB
# coding: utf-8 import ui class doesnotcallsuperinit(ui.View): def __init__(self,*args,**kwargs): pass class hasnoinit(ui.View): def somotherfunc(self): pass class callssuperinit(ui.View): def __init__(self,*args,**kwargs): ui.View.__init__(self,*args,**kwargs) def test_class(cls): obj=cls(bg_color='red') print '{} kwargs were {} properly initted'.format(cls.__name__, 'NOT'*(not obj.bg_color==(1,0,0,1))) test_class(doesnotcallsuperinit) test_class(hasnoinit) test_class(callssuperinit) ''' doesnotcallsuperinit kwargs were NOT properly initted hasnoinit kwargs were properly initted callssuperinit kwargs were properly initted '''No need to call ui.View.init if you don't provide your own. If you do, you must call it.
In your case, you are really just better off handling them yourself, since not all attributes are settable in the constructor, and different components don't behave the way they are supposed to ( for example, TableView did not respond to flex in the constructor, at least in the last beta, Buttons and Labels i think behave differently if setting the title in the constructor vs after, i.e it autoresizes or not). Write a function that sets attributes then forget about it.
-
Pythonista 2.0 extended keyboard bug?
posted4
Posts176
ViewswnMark
Maybe Off Topic, I found an bug (since version 2.0) with Apple Smart Keyboard (maybe same with USB keyboards like Magic Keyboard). Sometimes I wasn"t able to get the "Spacebar". Other keys worked fine. In other apps the "Spacebar" was also available. To reconnect the keyboard wasn't the solution. I have to restart the Pythonisa App. After that, the "Spacebar" was back!
-
Hiding console in Pythonista 2.0?
posted8
Posts148
ViewswnMark
I also got it now. I think the icon (1/3 to 2/3) should switch the color ( negative colors), if selected, to make it more user friendly.
This is already available in the UI Editor with the sign "i"
-
StaSh for Pythonista 2.0
posted14
Posts459
ViewsJonB
the ios8crash branch seems to solve the specific problems i was having. modify getstash.py to list the ios8crash instead of master, then restart pythonista.
-
Touch ID in Pythonista 2.0
posted2
Posts138
Viewsccc
See https://forum.omz-software.com/topic/2156/share-code-touch-id-authentication-in-pythonista
-
How can I install Scapy?
posted13
Posts483
ViewsWebmaster4o
I didn't actually test it, I just imported. Import worked for me, though.
-
Default behavior for console.set_color()
posted1
Posts63
ViewsNo one has replied
-
Possible to work with Twitter and Instagram API from within Pythonista???
twitter third party api instagram • posted3
Posts122
Viewsmiwagner1
you can basically do anything you can do with python in Pythonista. There is just the multitasking restrictions and file write restrictions to only inside the apps documents dir.
-
IRC channel
posted2
Posts110
ViewsovrCaffeinatd
Would be fun for testing out bots running in pythonista too :)
-
Rich Text Clipboard
objc native beta clipboard • posted12
Posts670
Viewsdshafik
I managed to get Pygments image drawing working by monkey patching the font stuff (ick!):
import clipboard import os import _font_cache from objc_util import * from pygments import highlight from pygments.lexers import PhpLexer from pygments.formatters import ImageFormatter from pygments.formatters.img import FontManager from pygments.styles import monokai monokai.MonokaiStyle.background_color = '#000000' def _get_nix_font_path(self, name, style): if style == 'bold' or style == 'italic': return _font_cache.get_font_path('%s %s' % (name, style.capitalize())) elif style == '': return _font_cache.get_font_path(name) else: return FontManager._get_nix_font_path = _get_nix_font_path ''' Replace Unicode newline chars with regular ones ''' code = clipboard.get().replace(unichr(8232), os.linesep) png = highlight(code, PhpLexer(startinline=True), ImageFormatter(style='monokai', font_name='Source Code Pro', font_size=60, line_numbers=False, line_pad=4)) with open('highlight.png', 'w+') as fp: fp.write(png) data = NSData.dataWithContentsOfFile_('highlight.png') c = ObjCClass('UIPasteboard') pasteBoard = c.generalPasteboard() pasteBoard.setData_forPasteboardType_(data, 'public.png') os.remove('highlight.png')Resulting in an image like so:
-
[suggestion] Gift Pythonista 2.0 to someone
posted3
Posts232
ViewsPhuket2
@pacco , the gifting idea is great. For me, i am on the Australian iTunes. The gifts are store specific. I don't really have any friends on the Australian iTunes Store that I can remember. I live in Thailand.
But I just wrote to all my Facebook friends to buy it. Quite a few people. But I was hard, I do a lot for people. 10 usd is nothing, they can cough up. But I echo your statements -
Stash, SCP, and ssh-keygen
posted7
Posts821
Viewsywangd
@briarfox is the author of the ssh tools. So I'll just try answer this as best as I can.
The ssh key files should be generated inside the stash installation root, i.e. $STASH_ROOT/.ssh/
ssh.py can take password from command line while scp can only rely on key files. I have now modified scp to ask for password if key files cannot be found. The changes are now pushed to the dev branch.
However both ssh and scp still failed to connect. ssh-keygen also failed to generate key files. I am not exactly what went wrong. They use to work for Pythonista 1.5. But I have not used them extensively. So I don't know when exactly they stopped working.
I'll look into it further when time permits and hopefully @briarfox can shed more light on it.
-
ui.View.present('sheet') will probably be too small in Pythonista v2
posted1
Posts120
ViewsNo one has replied
-
Font output console Pythonista 2.0
posted2
Posts176
ViewsJonB
You should be able to use the console module to change font size. You can do this in the pythonista_startup script to make it permanent.
-