#NEWLINE# def __init__( self , parent = None ) : #NEWLINE# #INDENT# super ( MikiView , self ) . __init__ ( parent ) #NEWLINE# self . parent = parent #NEWLINE# self . settings ( ) . clearMemoryCaches ( ) #NEWLINE# self . notePath = parent . settings . notePath #NEWLINE# self . settings ( ) . setUserStyleSheetUrl ( QUrl ( ( 'file://' + self . parent . settings . cssfile ) ) ) #NEWLINE# print ( QUrl ( ( 'file://' + self . parent . settings . cssfile ) ) ) #NEWLINE# self . page ( ) . setLinkDelegationPolicy ( QWebPage . DelegateAllLinks ) #NEWLINE# self . page ( ) . linkClicked . connect ( self . linkClicked ) #NEWLINE# self . page ( ) . linkHovered . connect ( self . linkHovered ) #NEWLINE# self . page ( ) . mainFrame ( ) . contentsSizeChanged . connect ( self . contentsSizeChanged ) #NEWLINE# self . scrollPosition = QPoint ( 0 , 0 )