All pastes #178823 Raw Edit

Mine

public text v1 · immutable
#178823 ·published 2006-09-21 17:22 UTC
rendered paste body
import wx
import time
import random

ID = 110

class App( wx.Frame ):
	def __init__( self, parent, id, title, size ):
		wx.Frame.__init__( self, parent, id, title, size )
		panel = wx.Panel( self );
		button = wx.Button( panel, ID, "Click here", size=(100, 10), pos=(12, 2) )
		wx.EVT_BUTTON( panel, ID, self.onID )
		self.Show( )
	def onID( self, event ):
		b = 0
		while 1:
			b += 1
			wx.Frame( self, -1, 'LOL', pos = (random.randint(1, 1440), random.randint(1, 900) ), size=(200,200) ).Show()
			if b == 10000:
				break;
			
app = wx.PySimpleApp( )
frame = App( None, -1, 'LOL', (200, 200) )
app.MainLoop( )