Python Forum
Help getting a new varible in a loop (or something)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help getting a new varible in a loop (or something)
#2
I'm not sure why this was moved to 'GUI' section, my problem was about coding but no worries ... I figured it out (I guess, could be better way?)

Because I couldn't get new random variables into variables in my button, I just packed the random variable directly into the lable.

It works now.

def myClick():
	myLabel = Label(root, text=(wwwwwh('WWWWWH.txt')) + " " + (common_conjugated('common_conjugated_nouns.txt')) + " " + (verb('31K_verbs.txt')) + " " + (adverb('6K_adverbs.txt')))
	myLabel.pack()
Reply


Messages In This Thread
RE: Help getting a new varible in a loop (or something) - by JackMack118 - Nov-26-2019, 08:55 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020