rendered paste bodyimport 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( )