No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
forms
README

README

pygtkForms esta basado en los formularios de 
django pero para pygtk.

import forms

-------- crear form
class Form(forms.Form):
    string = forms.CharField("Cadena")
    integer = forms.IntegerField("Entero")
    choices = forms.ChoiceField("Elementos", choices=((1, "opcion1"), (2, "Opcion 2")),)
    email = forms.EmailField("Email: ", required=False)
    active = forms.BooleanField(_("Activo: "), default=True)

form = Form()
gtkform = forms.GtkForm(form)

win = gtk.Window()
win.add(gtkForm)
win.show_all()

gtk.main()


----validar form

if gtkform.is_valid():
   string = gtkform.cleaned_data['string']