#NEWLINE# def __init__( self , parent = None , url = '' , width = None , height = None , isDialog = False ) : #NEWLINE# #INDENT# super ( Window , self ) . __init__ ( ( windowFlags if isDialog else None ) ) #NEWLINE# assets . windows . append ( self ) #NEWLINE# if ( width is None ) : #NEWLINE# #INDENT# width = assets . manifest [ 'width' ] #NEWLINE# #UNINDENT# if ( height is None ) : #NEWLINE# #INDENT# height = assets . manifest [ 'height' ] #NEWLINE# #UNINDENT# windowFlags = ( ( ( ( Qt . WindowTitleHint | Qt . WindowSystemMenuHint ) | Qt . WindowMinimizeButtonHint ) | Qt . WindowMaximizeButtonHint ) | Qt . WindowCloseButtonHint ) #NEWLINE# if isDialog : #NEWLINE# #INDENT# windowFlags |= Qt . Dialog #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# windowFlags |= Qt . CustomizeWindowHint #NEWLINE# #UNINDENT# self . dragParams = { #NEWLINE# #INDENT# 'type' : 0 , #NEWLINE# 'x' : 0 , #NEWLINE# 'y' : 0 , #NEWLINE# 'size' : 5 , #NEWLINE# 'margin' : 0 , #NEWLINE# 'draging' : False , #NEWLINE# #UNINDENT# } #NEWLINE# self . webView = WebView ( self , url ) #NEWLINE# self . api = API ( self ) #NEWLINE# self . parent = parent #NEWLINE# self . resize ( width , height ) #NEWLINE# self . setMouseTracking ( True ) #NEWLINE# self . setWindowFlags ( windowFlags ) #NEWLINE# self . setWindowTitle ( 'Hybrid App Engine' ) #NEWLINE# self . setAttribute ( Qt . WA_QuitOnClose , True ) #NEWLINE# self . setAttribute ( Qt . WA_DeleteOnClose , True ) #NEWLINE# self . setAttribute ( Qt . WA_TranslucentBackground , True ) #NEWLINE# self . setVisible ( assets . manifest [ 'visible' ] ) #NEWLINE# self . setResizable ( assets . manifest [ 'resizable' ] ) #NEWLINE# self . setFrameless ( assets . manifest [ 'frameless' ] ) #NEWLINE# self . setWindowIcon ( QIcon ( assets . manifest [ 'icon' ] ) ) #NEWLINE# self . setTransBackground ( assets . manifest [ 'transBackground' ] )