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 1.6 Beta #160020
-
ahh, i dont envy your job trying to support both 32 and 64 bit (but please do!). i did think it was strange that i had to use '\x01` etc for some bools.
went with the duck typing approach for getitem, setittem, delitem, etc, in my hacked module and that is working fine.one other question: some objc objects get created with an alloc(), if we create the instance in python. do we need to explicitly dealloc those when we are done withe the object, or does the objc garbage collection take care of that assuming we delete the python reference?
-
hyashi,
os.path.join(os.path.split(os.__file__)[0],'../Documentation')
contains the docs(html) so you could use your favorite archiver script to copy these off of the device, for leisurely consumption -
In a nutshell: You have to balance every
alloc
-init
with arelease()
orautorelease()
. Objects that are returned from other methods are typically autoreleased already, so releasing them again would result in a crash.ObjCInstance
keeps its own strong reference to the wrapped object internally, so that the object isn't deallocated as long as the wrapper exists (whose memory is managed by Python's reference counting mechanism, aka Garbage Collection).If you're unsure about the correct memory management, it's usually better to leak a little bit of memory than to over-release because the latter leads to crashes.
-
Is it possible to use the new ui editor to add a button to a NavView using the custom attributes field?
I tried using this in the custom attributes box but it doesn't seem to work.
{ 'left_button_items': [ui.ButtonItem(image=ui.Image.named('ionicons-close-24')) ]}
-
Referring to the latest beta:
I set the border of a slider to width=1,radius=15 via UI Editor
When i present the view it only takes the width parameter but the border is 0 -
Thanks, definitely looks like a bug. As a workaround for now, you could put this into the "Custom Attributes" field:
{'corner_radius': 15}
-
@hyshai
Is it possible to use the new ui editor to add a button to a NavView using the custom attributes field?
Unfortunately, this isn't possible right now. The problem is that the button items that a
NavigationView
shows depend on the view that is currently shown in the navigation view, not the navigation view itself.ui.load_view
creates the root view of the navigation stack automatically, but there's currently no way to access it programmatically. -
Ui.convert_point(touch.location, fmview, toview) no longer works. Touch.location is not a tuple and also does not have an as_tuple function as the documentation states.
I had to manually convert to a tuple grabbing the x and y. Touch.location now seems to be a subclass of vector2. -
@Gcarver Thanks, should be fixed in the next build.
-
ui.input_alert()
does not acceptinput
as keyword argument, though it says so in the documentation. However following workaround works:ui.input_alert('Title','',<actual-prefilled-input>)