tools/text.py
def display_text(self,text:str):
        '''
        Displays text on the screen and includes a little scrolling effect
        '''
        listener = threading.Thread(target=self.listen_for_space)
        listener.start()
        c_count = range(1,len(text) + 1)
        for character, pos in zip(text, c_count):
             sys.stdout.write(character) #  Having buffer issues when using print(..., end='')
             sys.stdout.flush()
             if(pos % 80 == 0):
                 print("")
             if(not self.q.empty()):
                 time.sleep(0.25)
        if(not self.q.empty()):
            self.q.get()
        print("")
        listener.join()

        Displays text on the screen and includes a little scrolling effect
        
Displays text on the screen and includes a little scrolling effect
Displays text on the screen and includes a little scrolling effect
def display_text(self,text:str):
        listener = threading.Thread(target=self.listen_for_space)
        listener.start()
        c_count = range(1,len(text) + 1)
        for character, pos in zip(text, c_count):
             sys.stdout.write(character) 
             sys.stdout.flush()
             if(pos % 80 == 0):
                 print("")
             if(not self.q.empty()):
                 time.sleep(0.25)
        if(not self.q.empty()):
            self.q.get()
        print("")
        listener.join()
def display_text ( self , text : str ) : listener = threading . Thread ( target = self . listen_for_space ) listener . start ( ) c_count = range ( 1 , len ( text ) + 1 ) for character , pos in zip ( text , c_count ) : sys . stdout . write ( character ) sys . stdout . flush ( ) if ( pos % 80 == 0 ) : print ( "" ) if ( not self . q . empty ( ) ) : time . sleep ( 0.25 ) if ( not self . q . empty ( ) ) : self . q . get ( ) print ( "" ) listener . join ( )
Displays text on the screen and includes a little scrolling effect
Displays text on the screen and includes a little scrolling effect
'''
        Displays text on the screen and includes a little scrolling effect
        ''' #  Having buffer issues when using print(..., end='')
self
text
str