Respuesta :

Omer08

Answer:

You could generate random numbers between the pixel amount of the height and width than place the dots at those random points

Explanation:

Do you need the code or can you make it using my "headstart"

The program is an illustration of frames in Python:

Frames are part of what makes up a graphic user interface program.

The missing code segment in Python, where comments are used to explain each line is as follows:

#This defines the draw handler method

def draw_handler(canvas):

    #This imports the random module

    import random

    #This generates a random number between 0 and 1000

    randNum=random.randint(0,1000)

    #This following iteration is performed once

    for r in range (600,600):

         #This sets the rgb color code to the random number

         r = randNum; g = randNum; b = randNum

         #This gets the color code

         randRGBcolor = "RGB(" + str(r) + "," + str(b) + ")"

         #This draws the points

         canvas.draw_point([x, x],(randRGBcolor))

At the end of the program, the 1000 points are displayed on the screen

Read more about similar programs at:

https://brainly.com/question/20475581

Q&A Education