CodePudding
Home
front end
Back-end
Net
Software design
Enterprise
Blockchain
Mobile
Software engineering
database
OS
other
Home
>
other
> Excuse me under which a great god know what role the register here?
Excuse me under which a great god know what role the register here?
Time:01-28
TestCMD=frame. The register (test)
Check the touch is not clear that the register
CodePudding user response:
CodePudding user response:
reference 1st floor llf_cloud response:
The from tkinter import *
Master=Tk ()
V=StringVar ()
Def test (content, reason, name) :
If the content=="little turtle" :
Print (" right!" )
Print (content, reason, name)
Return True
The else:
Print (" error!" )
Print (content, reason, name)
Return False
TestCMD=master. Register (test)
E1=Entry (master, textvariable=v, validate="focusout \
Validat
Ecommand=(testCMD, P '%', '% v', '% W))
E2=Entry (master)
E1. Pack (padx=10, pady=10)
E2. Pack (padx=10, pady=10)
Mainloop ()
CodePudding user response:
reference 1st floor llf_cloud response:
What is the register here mean? What is the role?
CodePudding user response:
GUI don't understand, which bosses, learning how to learn,
Page link:
https//www.codepudding.com/other/100197.html
Prev:
Python socket multithreaded client problems, seek guidance!! Thank you
Next:
For help, Python read how to use the Input to an ini file
Tags:
Scripting language (Perl/Python)
Related
Links:
CodePudding