#NEWLINE# def set_drawparams( self , kind ) : #NEWLINE# #INDENT# index = self . wdrawtype . currentIndex ( ) #NEWLINE# kind = self . drawtypes [ index ] #NEWLINE# index = self . wdrawcolor . currentIndex ( ) #NEWLINE# fill = ( self . wfill . checkState ( ) != 0 ) #NEWLINE# alpha = self . walpha . value ( ) #NEWLINE# params = { #NEWLINE# #INDENT# 'color' : self . drawcolors [ index ] , #NEWLINE# 'alpha' : alpha , #NEWLINE# #UNINDENT# } #NEWLINE# if ( kind in ( 'circle' , 'rectangle' , 'polygon' , 'triangle' , 'righttriangle' , 'ellipse' , 'square' , 'box' ) ) : #NEWLINE# #INDENT# params [ 'fill' ] = fill #NEWLINE# params [ 'fillalpha' ] = alpha #NEWLINE# #UNINDENT# self . canvas . set_drawtype ( kind , ** alpha )