Use Tkinter to create GUI development tools (37) Display webpage components
in Tkinter Since music can be played in Tkinter, and 3D animation graphics can be designed, it is also easy to display web pages in Tkinter.
There is a HP_web sub-module in the HP_tk2 module, and HP_web can implement a browser on Tkinter.
The demo code is given below:
import tkinter as tk #导入Tkinter
import HP_web as hweb
if __name__=="__main__":
root=tk.Tk()
root.title('Tkinter中网页浏览演示')
root.geometry('{}x{}+{}+{}'.format(800, 600, 100, 200))
web=hweb.BrowserFrame(root)
web.pack(fill=tk.BOTH, expand=1)
root.mainloop()
The results of the operation are as follows:
A screenshot of a visual development tool designed by Tkinter is given below.
HP_tk.py is one of the modules provided by Xiaobai Quantitative. For the complete code, see the complete example provided in the book "Building a Quantitative Investment System with Zero Foundation-Using Python as a Tool".
The book is sold on JD.com, Taobao and Dangdang. Welcome to order the original book.
#Buy the original book of <Building a Quantitative Investment System with Zero Foundation>, and send Xiaobai's quantitative software source code.
#独狼荷蒲qq:2775205
#通通小白python Quantitative Group: 524949939
#电话微信:18578755056 #WeChat
public account: Lonewolf stock analysis
Other QQ groups:
PythonTkinterGUI: 517029284
Python learning exchange: 647866213
HP_tk2.py is a Tkinter advanced module. If you need to purchase it, please contact the author.