#NEWLINE# def init_ui( self ) : #NEWLINE# #INDENT# if core . window ( self . window_name , q = True , ex = True ) : #NEWLINE# #INDENT# core . deleteUI ( self . window_name , wnd = True ) #NEWLINE# #UNINDENT# self . window = core . window ( self . window_name , wh = ( self . width , self . height ) , mnb = False , mxb = False , sizeable = False , title = self . window_title ) #NEWLINE# main_formLayout = core . formLayout ( 'main_formLayout' , nd = 100 , parent = self . window ) #NEWLINE# prog_columnLayout = core . columnLayout ( 'prog_columnLayout' , columnAttach = ( 'both' , 3 ) , rowSpacing = 10 , columnWidth = 265 , parent = main_formLayout ) #NEWLINE# top_rowLayout = core . rowLayout ( 'top_rowLayout' , numberOfColumns = 2 , columnWidth2 = ( 85 , 180 ) , adjustableColumn = 2 , columnAlign = ( 1 , 'right' ) , columnAttach = [ ( 1 , 'both' , 0 ) , ( 2 , 'both' , 0 ) ] , parent = prog_columnLayout ) #NEWLINE# topleft_columnLayout = core . columnLayout ( 'topleft_columnLayout' , w = 85 , columnAttach = ( 'left' , 5 ) , cal = 'left' , rowSpacing = 17 , columnWidth = 85 , parent = top_rowLayout ) #NEWLINE# core . text ( label = 'Scene Code' , parent = topleft_columnLayout ) #NEWLINE# core . text ( label = 'File Version' , parent = topleft_columnLayout ) #NEWLINE# core . text ( label = 'Handle Lenght' , parent = topleft_columnLayout ) #NEWLINE# core . text ( label = 'Export' , parent = topleft_columnLayout ) #NEWLINE# core . text ( label = 'Convert MOVs' , parent = topleft_columnLayout ) #NEWLINE# right_columnLayout = core . columnLayout ( 'right_columnLayout' , columnAttach = ( 'left' , 5 ) , cal = 'left' , rowSpacing = 10 , columnWidth = 85 , parent = top_rowLayout ) #NEWLINE# Seqname_rowLayout = core . rowLayout ( 'seqNameRow' , numberOfColumns = 3 , columnWidth3 = ( 40 , 60 , 55 ) , columnAttach = [ ( 1 , 'both' , 5 ) , ( 2 , 'both' , 10 ) , ( 3 , 'both' , 5 ) ] , parent = right_columnLayout ) #NEWLINE# seq = core . textField ( pht = 'SEQ' , parent = Seqname_rowLayout ) #NEWLINE# loc = core . textField ( pht = 'LOC' , parent = Seqname_rowLayout ) #NEWLINE# script = core . textField ( pht = 'Script' , parent = Seqname_rowLayout ) #NEWLINE# topRight_columnLayout = core . columnLayout ( 'topRight_columnLayout' , w = 170 , columnAttach = ( 'both' , 5 ) , rowSpacing = 10 , columnWidth = 160 , parent = right_columnLayout ) #NEWLINE# current_version = self . mEnv . get_current_version ( ) #NEWLINE# if current_version : #NEWLINE# #INDENT# version_number = current_version . version_number #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# version_number = 1 #NEWLINE# #UNINDENT# version_string = ( 'v%03d' % version_number ) #NEWLINE# version = core . textField ( text = version_string ) #NEWLINE# lenght_slider_grp = core . intSliderGrp ( field = True , cw2 = ( 30 , 70 ) , cc = self . set_handle , min = 0 , v = 15 , max = 50 ) #NEWLINE# self . edl_checkBox = core . checkBox ( 'EDL' , value = True ) #NEWLINE# self . mxf_checkBox = core . checkBox ( 'to MXF' , value = True ) #NEWLINE# core . separator ( h = 20 , parent = prog_columnLayout ) #NEWLINE# bottom_columnLayout = core . columnLayout ( 'bottom_rowLayout' , w = 260 , columnAttach = ( 'both' , 5 ) , rowSpacing = 10 , columnWidth = 260 , parent = bottom_columnLayout ) #NEWLINE# core . button ( label = 'Export' , bgc = ( 0.1 , 0.4 , 0.1 ) , w = 250 , parent = bottom_columnLayout , c = self . export ) #NEWLINE# core . button ( label = 'Close Window' , command = self . close , bgc = ( 0.3 , 0.1 , 0.1 ) , w = 250 , parent = bottom_columnLayout )