omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. philippe
    3. Posts

    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.


    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 20
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by philippe

    • Cannot launch shortcut

      Hello
      I’ve tried to launch a python script with shortcuts module but I can’t because my script cannot be found ?! My question is WHERE (in which directory) am I suppose to put my script ?

      posted in Pythonista
      P
      philippe
    • Trying to change label.text

      Hello everybody
      Labels have text attribute so I suppose it’s possible to change that but Labels don’t have action line in the GUI, no function to link with.
      Is there a way to access Labels and other windows in the view via ui ?

      posted in Pythonista
      P
      philippe
    • RE: Textfield keyboard_type

      @cvp
      What a mess !!
      Why can’t we use the os module ??
      Why do i haven’t the rights on MY phone ?

      I WANT TO START A SCRIPT WITH THE SYSTEM OR EXEC COMMANDS IN CONSOLE MODE OR IN A SCRIPT OF MINE AS I CAN DO IT ON A MAC OR A PC .

      If this is not possible or if I must invoke some dark unknown hidden class to do it….. I resign

      Dommage

      posted in Pythonista
      P
      philippe
    • RE: Textfield keyboard_type

      @cvp
      Yes but I would like to run a script from another script

      posted in Pythonista
      P
      philippe
    • RE: Textfield keyboard_type

      @cvp
      Just run a program with one of those exec() command, it’s simple ….

      posted in Pythonista
      P
      philippe
    • RE: Textfield keyboard_type

      @cvp
      When i try one of the functions exec() I get a permission denied message
      In fact it seems that i am not getting the right of execution. The os.getuid() function tells that i am the 501 uid
      I suppose i should have root uid
      What do you think

      posted in Pythonista
      P
      philippe
    • RE: Textfield keyboard_type

      @cvp
      Thank you @cvp
      You’re helpful
      Do you know how to be root anyway?

      posted in Pythonista
      P
      philippe
    • RE: Textfield keyboard_type

      @cvp
      Too much complicated for my purpose
      I am a beginner, one step before another
      See, I have many questions to ask and I also have to understand things before practicing.
      For example, I cannot run the functions exec() because of a permission denied error
      So how can I make myself root ?
      Etc ….

      posted in Pythonista
      P
      philippe
    • RE: Textfield keyboard_type

      @cvp
      Okay
      No more errors messages
      Nervetheless it didn’t change nothing during execution ?!

      posted in Pythonista
      P
      philippe
    • Textfield keyboard_type

      Hello 👋🏻
      On the way to understanding Pythonista UI i try to manipulate textfields
      In the doc I’ve found the keyboard_type attribute ; don’t know what it really does but the fact is an error message when trying to set , like :

      txfd.keyboard_type = KEYBOARD_NUMBERS
      NameError: name 'KEYBOARD_NUMBERS' is not defined

      KEYBOARD_NUMBERS is supposed to be one of multiple registered constants.
      So I mind what’s the problem with it ?

      posted in Pythonista
      P
      philippe
    • RE: About delegates

      @cvp
      Well done 👍🏻
      I was thinking it will be nice to get this in the documentation …..

      posted in Pythonista
      P
      philippe
    • RE: About delegates

      @ccc
      It’s all right
      You must implement the hook in the code
      No way to do it during the creation of the view in the GUI manager
      Thanks

      posted in Pythonista
      P
      philippe
    • RE: About delegates

      @cvp
      Thank u @cvp
      So , I suppose I must have to link this class somewhere in the GUI when creating the view, right?

      posted in Pythonista
      P
      philippe
    • About delegates

      Hi there
      I understand the concept about delegates;
      The documentation shows examples all clear but I don’t know how to link - for example a class containing functions to drive textfield view - it in the GUI manager?

      posted in Pythonista
      P
      philippe
    • RE: problème d'importation

      @cvp
      My module’s name was ‘mdp’
      I rename it ‘myModule’

      I didn’t change any of my classe names

      Is that clear enough

      posted in Pythonista
      P
      philippe
    • RE: problème d'importation

      @cvp
      I’ve change the name of my module (mdp)
      Module that I’ve implemented
      It’s a module composed with classes and functions; it’s purpose is to generate passwords

      posted in Pythonista
      P
      philippe
    • RE: problème d'importation

      @cvp
      It does work now !
      I have changed the name ; so it may appear , in that case , that case is insensitive?!
      Thanks for your advices

      posted in Pythonista
      P
      philippe
    • RE: problème d'importation

      @ccc
      I didn’t know this module
      I’ll try to change my module’s name
      Do you really think that it may be confusion between lower and upper case ?

      posted in Pythonista
      P
      philippe
    • RE: problème d'importation

      indeed the main script is in the same directory with the module .

      import mdp
      ......
      generateur = mdp.Generator(mdp.Test())
      .......
      

      the error message is :
      'module mdp has no attribute Generator'

      PS: Generator is a Class defined in mdp Module

      posted in Pythonista
      P
      philippe
    • problème d'importation

      je rencontre un problème à l'éxecution d'un fichier principal qui importe un script avec définition de classes.
      Les noms de classes ne sont pas reconnus par le script .
      y a-t-il qq chose de spécial à faire ?

      posted in Pythonista
      P
      philippe