#NEWLINE# def __init__( self , title = 'Save File' , selectedfilter = None ) : #NEWLINE# #INDENT# action = gtk . FILE_CHOOSER_ACTION_SAVE #NEWLINE# buttons = ( gtk . STOCK_CANCEL , gtk . RESPONSE_CANCEL , gtk . STOCK_SAVE , gtk . RESPONSE_OK ) #NEWLINE# self . widget = gtk . FileChooserDialog ( title = title , action = action , buttons = buttons ) #NEWLINE# self . selectedfilter = selectedfilter #NEWLINE# if ( selectedfilter is not None ) : #NEWLINE# #INDENT# self . _add_filter ( selectedfilter )