Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys, random
- from PyQt5.QtWidgets import QWidget, QApplication
- from PyQt5.QtGui import QPainter, QColor, QPen
- from PyQt5.QtCore import Qt
- from tkinter import *
- root = Tk()
- c = Canvas(root, width=1000, height=1000, bg='white')
- c.pack()
- for i in range(0, 1000):
- x = random.randint(1, size.width()-1)
- y = random.randint(1, size.height()-1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement