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 ?
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.
Posts made by philippe
-
Trying to change label.text
-
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
-
RE: Textfield keyboard_type
@cvp
Yes but I would like to run a script from another script -
RE: Textfield keyboard_type
@cvp
Just run a program with one of those exec() command, it’s simple …. -
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 -
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 …. -
RE: Textfield keyboard_type
@cvp
Okay
No more errors messages
Nervetheless it didn’t change nothing during execution ?! -
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 definedKEYBOARD_NUMBERS is supposed to be one of multiple registered constants.
So I mind what’s the problem with it ? -
RE: About delegates
@cvp
Well done 👍🏻
I was thinking it will be nice to get this in the documentation ….. -
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 -
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? -
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? -
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
-
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 -
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 -
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 ? -
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
-
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 ?