How to take only Numbers as a input in Textfield in maya cmd python

How to take only Numbers as a input in Textfield in maya cmd python

Anonymous
Not applicable
2,188 Views
1 Reply
Message 1 of 2

How to take only Numbers as a input in Textfield in maya cmd python

Anonymous
Not applicable

cmds.textField(w = 50,h = 5)

 

This command gives me text field and i want to enter only number in that text field.How to take only number as a input in text field ?

 

0 Likes
Accepted solutions (1)
2,189 Views
1 Reply
Reply (1)
Message 2 of 2

rajasekaransurjen
Collaborator
Collaborator
Accepted solution