#NEWLINE# def updateGUI( self ) : #NEWLINE# #INDENT# for frame in self . frames : #NEWLINE# #INDENT# self . frames [ frame ] [ 0 ] . hide ( ) #NEWLINE# #UNINDENT# self . frames . clear ( ) #NEWLINE# for ourEvent in self . rent . selectedEvents : #NEWLINE# #INDENT# if ( ourEvent != 'Blank' ) : #NEWLINE# #INDENT# self . frames [ ourEvent ] = [ ] #NEWLINE# self . frames [ ourEvent ] . append ( QFrame ( self . scrollAreaWidgetContents ) ) #NEWLINE# self . frames [ ourEvent ] [ 0 ] . setFrameShape ( QFrame . StyledPanel ) #NEWLINE# self . frames [ ourEvent ] [ 0 ] . setFrameShadow ( QFrame . Raised ) #NEWLINE# self . frames [ ourEvent ] [ 0 ] . setObjectName ( ( '%sFrame' % ourEvent ) ) #NEWLINE# self . frames [ ourEvent ] . append ( QVBoxLayout ( self . frames [ ourEvent ] [ 0 ] ) ) #NEWLINE# self . frames [ ourEvent ] . append ( QLabel ( self . frames [ ourEvent ] [ 0 ] ) ) #NEWLINE# self . frames [ ourEvent ] [ 2 ] . setText ( ( '<html><head/><body><p><span style=" font-size:16pt; font-weight:600;">%s:</span></p></body></html>' % ourEvent ) ) #NEWLINE# self . frames [ ourEvent ] . append ( QLabel ( self . frames [ ourEvent ] [ 0 ] ) ) #NEWLINE# self . frames [ ourEvent ] [ 3 ] . setText ( ( '<p><b>Overall Record:</b></p> <p>%s-%s-%s</p>' % ( self . rent . statsEvents [ ourEvent ] [ 'Wins' ] , self . rent . statsEvents [ ourEvent ] [ 'Losses' ] , self . rent . statsEvents [ ourEvent ] [ 'Draws' ] ) ) ) #NEWLINE# self . frames [ ourEvent ] . append ( QLabel ( self . frames [ ourEvent ] [ 0 ] ) ) #NEWLINE# self . frames [ ourEvent ] [ 4 ] . setText ( ( '<p><b>Total Matches:</b></p> <p>%s</p>' % self . rent . statsEvents [ ourEvent ] [ 'Matches' ] ) ) #NEWLINE# self . frames [ ourEvent ] . append ( QLabel ( self . frames [ ourEvent ] [ 0 ] ) ) #NEWLINE# self . frames [ ourEvent ] [ 5 ] . setText ( ( '<p><b>Win Percent:</b></p> <p>%.2f</p>' % self . rent . statsEvents [ ourEvent ] [ 'Win Percent' ] ) ) #NEWLINE# for i in range ( 2 , 6 ) : #NEWLINE# #INDENT# self . frames [ ourEvent ] [ 1 ] . addWidget ( self . frames [ ourEvent ] [ i ] ) #NEWLINE# #UNINDENT# self . horizontalLayout_2 . addWidget ( self . frames [ ourEvent ] [ 0 ] )