Hi!
I had found (since only 2 hours) that KixForm can to do used by Python +
PyWin32
At the end of the message, a very small example
It's an Active-X, in one file (.DLL), and one help-file (.CHM)
It is limited, but simple
Download here :
http://www.kixforms.org/assets/files...Xforms_230.zip
@-salutations
Michel Claveau
# -*- coding: cp1252 -*-
import time
import win32com.client
kgui = win32com.client .Dispatch('Kixt art.System')
def rgb(r,g,b):
return (r*256+g)*256+b
form=kgui.Form( )
form.ClientSize =(520,220)
form.Font = "Verdana"
form.Text = "Titre de la fenêtre"
label = form.Controls.L abel()
label.Font = "Verdana",
label.FontSize = 18
label.ForeColor = rgb(127,0,0)
label.FontBold = True
label.Text = "(vide)"
label.Top=40
label.Left=40
label.Size=(550 ,30)
bouton1= form.Controls.B utton()
bouton1.Size=(8 0,30)
bouton1.Text="v raiment"
bouton1.Font = "Verdana",
bouton1.FontSiz e = 12
bouton1.OnClick ="BT1"
bouton1.Left=20
bouton1.Top=100
bouton2= form.Controls.B utton()
bouton2.Size=(8 0,30)
bouton2.Text="O n"
bouton2.Font = "Verdana",
bouton2.FontSiz e = 12
bouton2.OnClick ="BT2"
bouton2.Left=12 0
bouton2.Top=100
bouton3= form.Controls.B utton()
bouton3.Size=(8 0,30)
bouton3.Text="a "
bouton3.Font = "Verdana",
bouton3.FontSiz e = 12
bouton3.OnClick ="BT3"
bouton3.Left=22 0
bouton3.Top=100
bouton4= form.Controls.B utton()
bouton4.Size=(8 0,30)
bouton4.Text="s oif."
bouton4.Font = "Verdana",
bouton4.FontSiz e = 12
bouton4.OnClick ="BT4"
bouton4.Left=32 0
bouton4.Top=100
bouton5= form.Controls.B utton()
bouton5.Size=(8 0,30)
bouton5.Text="t rès"
bouton5.Font = "Verdana",
bouton5.FontSiz e = 12
bouton5.OnClick ="BT5"
bouton5.Left=42 0
bouton5.Top=100
btquit= form.Controls.B utton()
btquit.Size=(16 0,30)
btquit.Text="Te rminer "
btquit.Font = "Verdana",
btquit.FontBold = True
btquit.FontItal ic = True
btquit.FontSize = 18
btquit.OnClick= "QUIT"
btquit.Top=170
btquit.Left=180
form.Show()
txt=''
while form.Visible:
action=kgui.App lication.DoEven ts()
if action=='BT1': txt=txt+' '+bouton1.Text
if action=='BT2': txt=txt+' '+bouton2.Text
if action=='BT3': txt=txt+' '+bouton3.Text
if action=='BT4': txt=txt+' '+bouton4.Text
if action=='BT5': txt=txt+' '+bouton5.Text
if action=="QUIT": break
label.Text=txt
time.sleep(0.5)
print 'Résultat :',label.Text