0
# create options menu
options = read_depots("depots.txt")
OptionMenu(app, depot, *options).pack()

In the above code I'M getting the error that __inti__ takes 4 arguments and that it's only given 3. I'M writing the code just how the book gives it to me.

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by griswolf
0

Please give us a more complete snippet, including at least how app, depot and options are constructed. I am guessing that the problem is you have only one choice in the options list, and need two or more.

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.