<s> from sparts . tasks . tui import UITask <EOL> from sparts . vservice import VService <EOL> import npyscreen <EOL> class MyUI ( UITask ) : <EOL> def appStart ( self ) : <EOL> self . app . registerForm ( '<STR_LIT>' , self . make_form ( ) ) <EOL> self . app . setNextForm ( '<STR_LIT>' ) <EOL> def make_form ( self ) : <EOL> F = npyscreen . Form ( name = "<STR_LIT>" , ) <EOL> t = F . add ( npyscreen . TitleText , name = "<STR_LIT>" , ) <EOL> fn = F . add ( npyscreen . TitleFilename , name = "<STR_LIT>" ) <EOL> fn2 = F . add ( npyscreen . TitleFilenameCombo , name = "<STR_LIT>" ) <EOL> dt = F . add ( npyscreen . TitleDateCombo , name = "<STR_LIT>" ) <EOL> s = F . add ( npyscreen . TitleSlider , out_of = <NUM_LIT:12> , name = "<STR_LIT>" ) <EOL> ml = F . add ( npyscreen . MultiLineEdit , <EOL> value = """<STR_LIT>""" , <EOL> max_height = <NUM_LIT:5> , rely = <NUM_LIT:9> ) <EOL> ms = F . add ( npyscreen . TitleSelectOne , max_height = <NUM_LIT:4> , value = [ <NUM_LIT:1> , ] , name = "<STR_LIT>" , <EOL> values = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] , scroll_exit = True ) <EOL> ms2 = F . add ( npyscreen . TitleMultiSelect , max_height = - <NUM_LIT:2> , value = [ <NUM_LIT:1> , ] , name = "<STR_LIT>" , <EOL> values = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] , scroll_exit = True ) <EOL> return F <EOL> MyUI . register ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> VService . initFromCLI ( ) </s>
