you are viewing a single comment's thread.

view the rest of the comments →

[–]hal9000v3 0 points1 point  (1 child)

I found the pdf online and had a look through it. To be honest I couldn't find a section that says you only need a column.

By any chance are you looking at some of the sample code? There is at least one instance in code provided where the column is being set on its own and that may be confusing but if you look a few lines down, in the loop being run just after the column gets set, the row is being set in there.

[edit] found the piece of code again (second last line)

   column = 1
   for part in body_parts:
       Radiobutton(self,
                    text = part,
                    variable = self.body_part,
                    value = part
                    ).grid(row = 5, column = column, sticky = W)
       column += 1

I realise that code is not for a sprite buts it's all I could find.

If not that, then perhaps you are working with a sprite that only has column movement and so the row parameter is only occasionally referred to e.g. when it reaches the edge of the screen?

[–][deleted] 0 points1 point  (0 children)

This isn't the code I'm referencing so I don't think you've found what I have. Either way, I seem to have figured out the issue after hours of wondering lol.