python - Naming a file the content of a Text Entry Widget -


i trying create program in tkinter allows people rename log file whatever typed text entry box. not going plan.

edited bryan oakley.

i have slaved rename function button new issue values contents weird set of numbers. these appear randomly generated every time run rename function.

these numbers like

44499952get

44452520get

46401376get

46400496get

44688048get

44697440get

can please or explain these numbers mean?

look @ code:

newname_ent = entry(self,width = 50,) contents = newname_ent.get() 

it seems highly unlikely user able type in in millisecond or between creating widget , getting value.

you need create button or set event binding call function after user has chance enter information. function put code rename.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -