Skip to content
/ - Public

oa系统上的工作探讨 以word格式保存下来

Notifications You must be signed in to change notification settings

Dadaism046/-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

-- coding: utf-8 --

""" Created on Tue Dec 6 17:59:19 2016

@author: Dada """

from PyQt5.QtCore import QUrl from PyQt5.QtWebEngineWidgets import QWebEngineView,QWebEnginePage from PyQt5.QtWidgets import QApplication,QMainWindow,QAction

class MyWindow(QMainWindow): '''############## 初始化区 #########################''' def init(self,url): super(MyWindow,self).init()

    self.view = QWebEngineView(self)
    self.view.load(url) 
    
    self.setCentralWidget(self.view)
    
    viewMenu = self.menuBar().addMenu("&View")
    viewSourceAction = QAction("Click", self)
    viewSourceAction.triggered.connect(self.click)  
    viewMenu.addAction(viewSourceAction)
    
def click(self):


    cede = '''baseForm.pageNumber.value = "2";baseForm.submit();

''' code2 = '''function goPageHTML(id,pageCount) { baseForm.pageNumber.value=5; var flag = true; baseForm.keyWords.value = encodeURIComponent(baseForm.keyWords.value); baseForm.contributor.value = encodeURIComponent(baseForm.contributor.value); baseForm.submit();

}''' code3 = '''document.getElementById('page_show').click()''' result = self.main_frame.evaluateJavaScript("%s" % code3) print(result) return result

if name == 'main': import sys app = QApplication(sys.argv) url = QUrl("") #url = QUrl(r"") browser = MyWindow(url) browser.show()

About

oa系统上的工作探讨 以word格式保存下来

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published