Skip to main content

一个提供多种内核的网页浏览器

Project description

这是一个提供网页浏览网页的库,包含Chromium和IE内核

This is a package for web browser, including the Chromium and Internet explorer kernels

中文Chinese

使用方法

安装

安装方法:

pip install WebPage

使用

  • IE:

    • def __init__(self,name,url=”http://www.baidu.com”,geometry=”1200x600+100+10”,title=”Browser”,dictionary=dictionary):

      用来创建

      • 使用:名字 = IE(名字)

      • self:不用管

      • name:名字(后期调用时需要填),str或list

      • url:网址

      • geometry:大小

      • title:网页名称

      • dictionary:格式:name:[url,geometry,title](默认不需要提供,是因为不加报错所以添加)

    • def url(self,name,url,dictionary=dictionary):

      用来更改网址

      • 使用:名字.url(名字,网址)

      • self:不用管

      • name:名字(需要和上文填的一致)

      • url:网址

    • def geometry(self,name,geometry,dictionary=dictionary):

      用来更改大小

      • 使用:名字.geometry(名字,大小,例”1200x600+100+10”)

      • name:名字

      • geometry:大小(长x宽+长+宽)注:x是小写的X,不是乘号*

    • def title(self,name,title,dictionary=dictionary):

      用来更改标题

      • 使用:名字.title(名字,标题)

      • name:名字

      • title:标题

    • def run(self,name,dictionary=dictionary):

      用来运行

      • 使用:名字.run(名字)

      • name:名字

  • HTML:

    • 注:HTML用的是IE内核

    • def __init__(self,name,html=”<h1>Browser</h1>”,geometry=”1200x600+100+10”,title=”Browser”,dictionary=dictionary):

      用来创建

      • 使用:名字 = IE(名字)

      • self:不用管

      • name:名字(后期调用时需要填),str或list

      • html:HTML

      • geometry:大小

      • title:网页名称

      • dictionary:格式:name:[url,geometry,title](默认不需要提供,是因为不加报错所以添加)

    • def html(self,name,html,dictionary=dictionary):

      用来更改HTML

      • 使用:名字.html(名字,网址)

      • self:不用管

      • name:名字(需要和上文填的一致)

      • html:网址

    • def geometry(self,name,geometry,dictionary=dictionary):

      用来更改大小

      • 使用:名字.geometry(名字,大小,例”1200x600+100+10”)

      • name:名字

      • geometry:大小(长x宽+长+宽)注:x是小写的X,不是乘号*

    • def title(self,name,title,dictionary=dictionary):

      用来更改标题

      • 使用:名字.title(名字,标题)

      • name:名字

      • title:标题

    • def run(self,name,dictionary=dictionary):

      用来运行

      • 使用:名字.run(名字)

      • name:名字

  • Chromium:

    • def __init__(self,name,url=”http://www.baidu.com”,title=”Browser”,dictionary=dictionary):

      用来创建

      • 使用:名字 = Chromium(名字)

      • self:不用管

      • name:名字(后期调用时需要填),str或list

      • url:网址

      • title:网页名称

      • dictionary:格式:name:[url,geometry,title](默认不需要提供,是因为不加报错所以添加)

    • def url(self,name,url,dictionary=dictionary):

      用来更改网址

      • 使用:名字.url(名字,网址)

      • self:不用管

      • name:名字(需要和上文填的一致)

      • url:网址

    • def title(self,name,title,dictionary=dictionary):

      用来更改标题

      • 使用:名字.title(名字,标题)

      • name:名字

      • title:标题

    • def run(self,name,dictionary=dictionary):

      用来运行

      • 使用:名字.run(名字)

      • name:名字

英文English

Method of use

install

Method of install:

pip install WebPage

How to use

  • IE:

    • def __init__(self,name,url=”http://www.baidu.com”,geometry=”1200x600+100+10”,title=”Browser”,dictionary=dictionary):

      Use it to init

      • Use:name = IE(name)

      • self:Don’t need

      • name:name(after this sentence will use it),format:str or list

      • url:URL

      • geometry:size

      • title:the name of the webpage

      • dictionary:format:name:[url,geometry,title](The default does not need to be provided, because don’t add it will report error so add)

    • def url(self,name,url,dictionary=dictionary):

      Usse it to change the url

      • Use:name.url(name,url)

      • self:Don’t need

      • name:name(Need the same as the name before)

      • url:url

    • def geometry(self,name,geometry,dictionary=dictionary):

      Use it to change the size

      • Use:name.geometry(name,size,example”1200x600+100+10”)

      • name:name

      • geometry:size(height x width + height + width)Note:X is a lowercase X, not a multiplication sign *

    • def title(self,name,title,dictionary=dictionary):

      Use it to change the title

      • Use:name.title(name,title)

      • name:name

      • title:title

    • def run(self,name,dictionary=dictionary):

      Use it to run the programme

      • Use:name.run(nsme)

      • name:name

  • HTML:

    • Note: HTML use the IE kernel

    • def __init__(self,name,html=”<h1>Browser</h1>”,geometry=”1200x600+100+10”,title=”Browser”,dictionary=dictionary):

      Use it to init

      • Use:name = IE(name)

      • self:Don’t need

      • name:name(after this sentence will use it),format:str or list

      • html:HTML

      • geometry:size

      • title:the name of the webpage

      • dictionary:format:name:[url,geometry,title](The default does not need to be provided, because don’t add it will report error so add)

    • def html(self,name,html,dictionary=dictionary):

      Usse it to change the html

      • Use:name.html(name,html)

      • self:Don’t need

      • name:name(Need the same as the name before)

      • html:html

    • def geometry(self,name,geometry,dictionary=dictionary):

      Use it to change the size

      • Use:name.geometry(name,size,example”1200x600+100+10”)

      • name:name

      • geometry:size(height x width + height + width)Note:X is a lowercase X, not a multiplication sign *

    • def title(self,name,title,dictionary=dictionary):

      Use it to change the title

      • Use:name.title(name,title)

      • name:name

      • title:title

    • def run(self,name,dictionary=dictionary):

      Use it to run the programme

      • Use:name.run(nsme)

      • name:name

  • Chromium:
    • def __init__(self,name,url=”http://www.baidu.com”,title=”Browser”,dictionary=dictionary):

      Use it to init

      • Use:name = IE(name)

      • self:Don’t need

      • name:name(after this sentence will use it),format:str or list

      • url:URL

      • title:the name of the webpage

      • dictionary:format:name:[url,geometry,title](The default does not need to be provided, because don’t add it will report error so add)

    • def url(self,name,url,dictionary=dictionary):

      Usse it to change the url

      • Use:name.url(name,url)

      • self:Don’t need

      • name:name(Need the same as the name before)

      • url:url

    • def title(self,name,title,dictionary=dictionary):

      Use it to change the title

      • Use:name.title(name,title)

      • name:name

      • title:title

    • def run(self,name,dictionary=dictionary):

      Use it to run the programme

      • Use:name.run(nsme)

      • name:name

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TkWebPage-1.1.3.win-amd64.zip (14.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page