<s> from rx . subjects import Subject <EOL> from rx . concurrency import TkinterScheduler <EOL> try : <EOL> from tkinter import * <EOL> except ImportError : <EOL> from Tkinter import * <EOL> def main ( ) : <EOL> root = Tk ( ) <EOL> root . title ( "<STR_LIT>" ) <EOL> scheduler = TkinterScheduler ( root ) <EOL> mousemove = Subject ( ) <EOL> frame = Frame ( root , width = <NUM_LIT> , height = <NUM_LIT> ) <EOL> def move ( event ) : <EOL> mousemove . on_next ( event ) <EOL> frame . bind ( "<STR_LIT>" , move ) <EOL> text = '<STR_LIT>' <EOL> labels = [ Label ( frame , text = c ) for c in text ] <EOL> def handle_label ( i , label ) : <EOL> label . config ( dict ( borderwidth = <NUM_LIT:0> , padx = <NUM_LIT:0> , pady = <NUM_LIT:0> ) ) <EOL> def on_next ( ev ) : <EOL> label . place ( x = ev . x + i * <NUM_LIT:12> + <NUM_LIT:15> , y = ev . y ) <EOL> mousemove . delay ( i * <NUM_LIT:100> , scheduler = scheduler ) . subscribe ( on_next ) <EOL> for i , label in enumerate ( labels ) : <EOL> handle_label ( i , label ) <EOL> frame . pack ( ) <EOL> root . mainloop ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
