Professional Documents
Culture Documents
Pluie Manual
Pluie Manual
Example 01 ("exemple01.py")
Def cree():
import guie
g1=guie.ggroup(ID='GR1')
c2=guie.gbutton(ID='BTANNEL', label='Annuler')
guie.gwrite(g1, fichier='okann.htm')
return g1
Result:
Explanations:
Use
def utilise():
importation guie
g=guie.guie(' okann.htm')
while True:
if not g.getnextaction():
if g.type==' break':
print 'GUIE casse' #broken gui
break
else:
time.sleep(0.1)
else:
if g.type=='clic':
if g.cible=='BTOK':
print “Le bouton OK a ete clique"
Explanations
import guie
g=guie.guie(' okann.htm')
while True:
if not g.getnextaction():
The events (blur, focus, clavier, souris (mouse translated), etc.) are memorized in a file
(FIFO; English tail). Thus, they progressively are treated, without losing some, even if the
treatments are long. One can say that there is an operation in threads separated, between the
card and the use.
getnextaction() will turn over the following event, which is on standby. If there is no event,
None is turned over. If the card is not available any more, the pseudo event "break" is turned
over.
if g.type==' click:
g.close()
Other examples
Documentation
Guiding principles.
Groups
With RAIN, one directly does not pose buttons or fields. It must always be contained in a
group (and a group can contain other groups).
Objects usable
• group
• jump of lignes(s) (saut de lignes(s) in french)
• label (text)
• image
• champ (translates as field)
• textarea (field multiple-line)
• table (in reading alone)
• bouton (button)
• marquee (ravelling text)
Generic properties
Methods:
• close(); firm the object, and all objects contained, while calling, for each one
regen(). Turn over code-source HTML of the unit.
• walk(); turn over a list of (object, type), for the object and all the objects
contained.
• walkd(); turn over a dictionary {ID: object } object, for the object and all the
objects contained.
• regen(); turn over the code - recomputed source HTML, for the current
object.
Use
Events
Yes, I tested. RAIN functions with IE-6. But certain functions go only with IE-7 (the Zoom
for example).
That arrives, with certain software of safety, which cancels the modifications made by the
users.
I, in particular met that with SpyBot-Search & Destroy, or Windows Defender. It should be
noted that, in this software, it is possible to decontaminate the automatic modification of
certain parameters.
Good evening!
Modif important now makes it possible expressed as a percentage to use the sizes (%) in more of the
sizes in pixels (px).
To be able to use it, one needs that is installed, on the station, Excel-2000, Excel-XP, or Excel-2003
Why poisoned? Because that that fronctionne more, as soon as Office-2007 is installed. The
explanation is simple: in its great interest of the users, ms withdrew components OWC of Office-2007.
Conclusion: in the long term, that will not function any more...