omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. BillBaroude

    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.


    • Profile
    • Following 1
    • Followers 0
    • Topics 4
    • Posts 11
    • Best 1
    • Controversial 0
    • Groups 0

    BillBaroude

    @BillBaroude

    4
    Reputation
    1001
    Profile views
    11
    Posts
    0
    Followers
    1
    Following
    Joined Last Online

    BillBaroude Unfollow Follow

    Best posts made by BillBaroude

    • Pythonista 3.0 Xcode template

      Hi all,
      Is there a Xcode template available for Pythonista 3 ?

      Thanks

      posted in Pythonista
      BillBaroude
      BillBaroude

    Latest posts made by BillBaroude

    • RE: Quick Help returning "No Results" in Version 2.1

      Same my side.

      posted in Pythonista
      BillBaroude
      BillBaroude
    • RE: v2.0 vs v2.1 : hard crash using "reserved" var names ?

      and at least : after verification ,code copied from this page produces the crash too.

      posted in Pythonista
      BillBaroude
      BillBaroude
    • RE: v2.0 vs v2.1 : hard crash using "reserved" var names ?

      More info, going deeper in my searches :

      • It looks like to crash only if files had been created with 2.0 using the Game/Animation template. If the file is created with 2.1 with the template it works.
      • If the file is edited using Sublime Text on Mac, it works after transfer (via drop box) on iPhone

      It looks like a text formatting issue...

      Here is the code (but should probably not produce the crash because of text copy/past from the .py file to this page):

      #This guy produces an hard crash on v2.1
      	
      from scene import *
      import sound
      import random
      import math
      #import photos
      
      class MyScene (Scene):
      	def setup(self):
      		self.background_color = '#ffffff'
      		
      		self.target = SpriteNode('iob:ionic_256')
      		
      		self.add_child(self.target)
      		
      		pass
      		
      	def did_change_size(self):
      		pass
      	
      	def update(self):
      		
      		pass
      	
      	def touch_began(self, touch):
      		pass
      	
      	def touch_moved(self, touch):
      		pass
      	
      	def touch_ended(self, touch):
      		pass
      
      if __name__ == '__main__':
      	run(MyScene(), PORTRAIT, show_fps=True)
      

      Do other people are facing this ?
      Thanks

      posted in Pythonista
      BillBaroude
      BillBaroude
    • v2.0 vs v2.1 : hard crash using "reserved" var names ?

      Hi there,

      Going forward to 2.1 from 2.0, I have a bunch of "hard crashes" (direct go back to ios, no error, no message) when using certain var names in my scripts (working on 2.0)

      I had tracked the issue and discovered that vars names like "self.target" in scene produce 100% the crash, but using "self.Target" works.
      It's probably a deep exception.

      Any fix possible ?

      Thanks

      posted in Pythonista
      BillBaroude
      BillBaroude
    • Pythonista 3.0 Xcode template

      Hi all,
      Is there a Xcode template available for Pythonista 3 ?

      Thanks

      posted in Pythonista
      BillBaroude
      BillBaroude
    • RE: Apple Advertisments

      Hi there,

      I'm having the same objective : release a simple game, with adds to make (or not...) money via the app Store.
      My researches brings me to Google Ads, and Google provide a Python version of their Ads API.
      I hadn't gone more further in that (I'm not at this point of the project), but here is the Google solution :
      https://developers.google.com/adwords/api/docs/samples/python/

      I'm not sure it will be easy to use with Pythonista, or simply possible, but it looks promising and probably easiest than Object-C for Python programmers.

      As I was talking about it in the "Next Pythonista Most wanted features" thread, I really think that being able to support such a feature in Pythonista should bring a lot of people to develop with.

      posted in Pythonista
      BillBaroude
      BillBaroude
    • RE: Wish list for next release

      Hi there,

      I share my point of view here, in my specific context : Dummy in Python starting with Pythonista.
      During the last weeks, I started a little game project to get more familiar with Python, and here are the most wanted features I have :

      • Communication between dev. target machine (iPhone, iPad, ...) and a desktop machine (Mac). This will extend drastically the quality of development environment, especially for long script, but also will help to integrate your own graphics, music, in an easy way. This can be :

        • Direct link using a specific app on desk machine to communicate with Pythonista app on target machine.
        • Pythonista "emulator" on desktop machine / specific setup to be able to write and run scriptes directly on the desktop machine and simulating the target one
        • Integration of the DropBox Sync script in the native tools given with Pythonista + an "how to" in documentation.
        • Active version of the DropBox guy, with no run to do to synch (speed up dev process)
      • More and more code samples in the reference documentation. Even if the documentation is really well done, dummies need help and as much examples as possible.

      • iAd module easy to use in Pythonista (apple advertising in apps or equivalent). This will help a lot developers to make money with their Pythonista projects, and then probably bring a lot more projects under this platform.

      I admit that's a Christmas list :)
      Thanks,

      posted in Pythonista
      BillBaroude
      BillBaroude
    • RE: ObjectC "idleTimerDisabled" !?!

      @JonB said:

      mport console
      console.set_idle_timer_disabled(True)

      Thank a lot.
      I wasn't far from finding using ObjectC, but the console method is way easier :)

      posted in Pythonista
      BillBaroude
      BillBaroude
    • ObjectC "idleTimerDisabled" !?!

      Hi there,

      I'm seaeching the right way to make work an ObjectC line of code to disable the Idle timer on iPhone (screen goes darker)
      The original line of code (found on the web) is :
      [UIApplication sharedApplication].idleTimerDisabled = YES;

      My side, I can't figure out how to use this exaclty. After a bunch of tries, no way to make it works.
      Here is the non working code I tried :

      from objc_util import *

      #Switch off idle mode (ObjectC)
      UIApplication = ObjCClass('UIApplication')
      idleTimerDisabled = ObjCClass('idleTimerDisabled')
      My_app = UIApplication.sharedApplication()
      My_app.idleTimerDisabled = 'YES'

      Any idea on the way to make it work ?

      Thx !

      posted in Pythonista
      BillBaroude
      BillBaroude
    • RE: Sequence of Action with a LabelNode

      Thanks ! That was really simple ...
      My side I was wondering that the Action structure were independant of the loop and was done to complete anyway. My bad :)

      posted in Pythonista
      BillBaroude
      BillBaroude