Exemplo n.º 1
0
    def cilck():
        landurl = landpageEntry.get()
        path = 'C:/Users/庄依林/OneDrive/桌面/Code/class/webview/'

        web = Webview(url = landurl, oripage = path + 'oripage', file_dir = path)

        if not web.web_diff():
            mainText.delete(0.0, tkinter.END)
            mainText.insert(tkinter.INSERT,'        WARNING!')
        else:
            mainText.delete(0.0, tkinter.END)
            mainText.insert(tkinter.INSERT, '   nothing happened')
Exemplo n.º 2
0
def main():
    delay = eval(input('please input the delay time:'))
    url = input('please input the url:')
    path = input('please input the path:')
    num = eval(input('please input the round:'))

    web = Webview(url=url, oripage=path + "oriweb", file_dir=path)
    web.save_file0()

    for eachround in range(num):
        print("It's the {} times,".format(eachround), end='')

        if web.web_diff:
            print('nothing happened')
        else:
            print('warning!')

        time.sleep(delay)