Re: GtkEntry input filters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Carl B. Constantine" <duckwing@xxxxxxxxxxx> writes:

> I have a GtkEntry in my app where the only thing I want to be able to
> input is numbers. I don't want letters or characters like (, * &, -, ),
> and so forth.
>
> Anyone know how to write such an input filter?

Add a signal handler for focus_out_event, and call isnum() for the
chars in the entry text.

Billy
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux