<s> '''<STR_LIT>''' <EOL> import wx <EOL> from python_toolbox . wx_tools . cursors import CursorChanger <EOL> from . cute_dialog import CuteDialog <EOL> class CuteFileDialog ( CuteDialog , wx . FileDialog ) : <EOL> '''<STR_LIT>''' <EOL> def __init__ ( self , parent , message = wx . FileSelectorPromptStr , <EOL> defaultDir = wx . EmptyString , defaultFile = wx . EmptyString , <EOL> wildcard = wx . FileSelectorDefaultWildcardStr , <EOL> style = wx . FD_DEFAULT_STYLE , pos = wx . DefaultPosition ) : <EOL> wx . FileDialog . __init__ ( self , parent , message , defaultDir , defaultFile , <EOL> wildcard , style , pos ) <EOL> CuteDialog . __init__ ( self , parent , - <NUM_LIT:1> , style = style , skip_wx_init = True ) <EOL> self . ExtraStyle &= ~ wx . FRAME_EX_CONTEXTHELP <EOL> @ classmethod <EOL> def create_show_modal_and_get_path ( cls , * args , ** kwargs ) : <EOL> '''<STR_LIT>''' <EOL> dialog = cls ( * args , ** kwargs ) <EOL> try : <EOL> result = dialog . ShowModal ( ) <EOL> finally : <EOL> dialog . Destroy ( ) <EOL> return dialog . GetPath ( ) if result == wx . ID_OK else None </s>
