-1

I am making essentialy a jeopardy game. the problem I am having is I can't get my correct guesses to change the dashes thats being displayed to the guesses value. here are parts of my code.

[ def guessing(self):
tite = self.character_ent.get()
tite = tite.lower()
if tite in self.getName():
newer = ""
for i in range(len(self.getName())):
if tite == self.getName():
newer += tite
else:
newer += self.so_far
newer.replace(i,tite)
self.so_far = newer
self.movie_name_txt.delete(0.0,END)
self.movie_name_txt.insert(0.0, self.so_far)]

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by pyTony
0
def guessing(self):
    tite = self.character_ent.get()
    tite = tite.lower()
    if tite in self.getName():
        newer = ""
        for i in range(len(self.getName())):
            if tite == self.getName():
                newer += tite
            else:
                newer += self.so_far[i]
                newer.replace(i,tite)
        self.so_far = newer
        self.movie_name_txt.delete(0.0,END)
        self.movie_name_txt.insert(0.0, self.so_far)

Push (code) button for correct tags. This is completely ununderstandable anyway, need real values of things, put for example print of the used self-variables in beginning of function and post the call of function (input) and it's output.

Edited by mike_2000_17: Fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.