@cvp yes !!!now i will use it 😉
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 crazy666
-
RE: Help for widget
Hello i have a question ...
what is the difference between frame and scene?
i'm desperate i don't know how to restart
What is the best to start ?
Create view class and after add fonction?
Or what is the best strategy for writeI don't want use ui editor becose i want understand structure
Thanks for help me !!
-
RE: Help for widget
Sa fait un mois que j'apprends python
J'ai lu au complet sur python.org et lu un livre en anglais mais j'ai de la difficulté en anglais .j'essais d'apprendre l'anglais en meme temps 😂
Et se que je trouve difficile c'est que sur internet il parle seulement de tinker et sur ios il ne la pas -
RE: Help for widget
I'm trying to understand how "rect" works ,wait please
,speak french? -
RE: Help for widget
@stephen said:
is this the problem you are facing?
Yes , you are a genius !!!
1 week I search on google for that -
RE: Help for widget
Thanks @mikael i want create
https://imgur.com/W1oSZmS
With my calcul in my widget home page -
RE: Help for widget
Thank for help stephan ,becose i don't know how split number
-
RE: Help for widget
Sorry for my english
I try to create widget with my codebrut = int(input('brut:')) long = int(input('longueur core:')) nb = int(input('nb roll:')) skc = 73 #skid canadien# skus = 60 #skid usa# tub6 = 0.42 #core de 6 pouce# tub3 = 0,10 #core de 3 pouce# pall = brut - skc - long * tub6 * nb roll = pall / nb print('rouleau:' , roll, 'lbs') print('pallette:' , pall, 'lbs') And i try to integrate 2 switch for (skc/skus) and (tub6/tub3)
-
Help for widget
Hello i try to lean python and i have difficulty for create widget ,
import console import clipboard import ui import appex, ui mv = ui.View(frame=(0,0,320,420)) mv.background_color = 'black' def num_inp(sender): if sender.title == 'next': sender.active = 1 + sender.active return tf_idx = sender.superview['nf'].active tf = sender.superview[['brut','long','nb'][tf_idx]] tf.text += sender.title l1 = ui.Label() l1.text = 'brut:' l1.frame = (67,2,50,20) l1.text_color = '#ffffff' mv.add_subview(l1) l2 = ui.Label() l2.text = 'long:' l2.frame = (65,25,50,20) l2.text_color = '#ffffff' mv.add_subview(l2) l3 = ui.Label() l3.text = 'nb:' l3.frame = (77,48,50,20) l3.text_color = '#ffffff' mv.add_subview(l3) l4 = ui.Label() l4.text ='palette:' l4.frame = (67,71,110,20) l4.text_color = '#ffffff' mv.add_subview(l4) l5 = ui.Label() l5.text = 'rouleau:' l5.frame = (64,94,110,20) l5.text_color = '#ffffff' mv.add_subview(l5) t1 = ui.TextField(name='brut') t1.frame = (105,2,70,20) mv.add_subview(t1) t2 = ui.TextField(name='long') t2.frame = (105,25,70,20) mv.add_subview(t2) t3 = ui.TextField(name='nb') t3.frame = (105,48,70,20) mv.add_subview(t3) for i in range(0,5): b = ui.Button() b.action = num_inp b.title = str(i) b.frame = (180+i*40,0,54,50) b.font = ("<system>",36) b.background_color = '#949494' mv.add_subview(b) for j in range(5,10): b = ui.Button() b.action = num_inp b.title = str(j) b.frame = (-20+j*40,50,54,50) b.font = ("<system>",36) b.background_color = '#949494' mv.add_subview(b) nf =ui.Button(name='nf') nf.title = 'next' nf.font = ("<system>",20) nf.background_color ='#c5c5c5' nf.action = num_inp nf.active = 0 nf.frame = (5,5,50,30) mv.add_subview(nf) appex.set_widget_view(mv)