#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# self . colorseldlg = None #NEWLINE# window = gtk . Window ( gtk . WINDOW_TOPLEVEL ) #NEWLINE# window . set_title ( 'Color selection test' ) #NEWLINE# window . set_resizable ( True ) #NEWLINE# window . connect ( 'delete_event' , window . destroy_window ) #NEWLINE# self . drawingarea = gtk . DrawingArea ( ) #NEWLINE# self . color = self . drawingarea . get_colormap ( ) . alloc_color ( 0 , 65535 , 0 ) #NEWLINE# self . drawingarea . set_size_request ( 200 , 200 ) #NEWLINE# self . drawingarea . set_events ( gtk . gdk . BUTTON_PRESS_MASK ) #NEWLINE# self . drawingarea . connect ( 'event' , self . area_event ) #NEWLINE# window . add ( self . drawingarea ) #NEWLINE# self . drawingarea . show ( ) #NEWLINE# window . show ( )