Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loops in GUI
#1
Hello everyone,
I have a quick question. We got an assignment by our Computer Science teacher and she gave us this task to complete:
Draw a detailed picture (Graphical User Interface and Tkinter). Where possible, use loops to repeat sections of the drawing. Ex. To create a forest, you would draw one tree and then use a loop to draw many trees.

Now my question:
How am I supposed to create this loop, because I want the trees in different positions, not all in one spot and I just can't figure out, how to create the loop that creates trees in many different locations.
Unfortunately, we didn't do this in class yet and the teacher is away for the week but the assignment has to be handed in to the supply teacher by Friday.

Thank you for your help!!
Reply


Messages In This Thread
Loops in GUI - by NicoGl - May-23-2018, 09:11 PM
RE: Loops in GUI - by nilamo - May-23-2018, 09:23 PM
RE: Loops in GUI - by NicoGl - May-23-2018, 09:48 PM
RE: Loops in GUI - by woooee - May-24-2018, 12:23 AM
RE: Loops in GUI - by NicoGl - May-24-2018, 02:59 PM

Forum Jump:

User Panel Messages

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