发布网友 发布时间:2022-04-20 19:20
共3个回答
热心网友 时间:2023-08-05 19:22
对方问python控件,你用html来解释,我也是醉了,不懂不要瞎说好吗,题主估计是在做桌面程序,使用html语言解释,我真心想对你说,小白.....渣渣热心网友 时间:2023-08-05 19:22
def selectWakeLock(self):
self.destroyFrame()
wakeLockFrame = Frame(self, relief=RAISED, borderwidth=1)
wakeLockFrame.pack(fill=BOTH, expand=1)
......
saveFilePath = StringVar()
savePathEntry = Entry(wakeLockFrame, width=65, state="normal", textvariable=saveFilePath)
savePathEntry.grid(row=5, column=1, columnspan = 4, sticky=(W, E))
saveFilePath.set("D:\")
......
urlLabel = Label(wakeLockFrame, text="超链接文字", fg = "brown", justify="left", wraplength=480)
urlLabel.grid(row = 10,column = 0,columnspan = 8, sticky = (W+E+S+N))
urlLabel.bind("<ButtonPress-1>", self.openFilemanager)
def openFilemanager(self, event):
start_directory = savePathEntry.get()
if start_directory != None and start_directory.strip() != "":
os.startfile(start_directory)
热心网友 时间:2023-08-05 19:23
超链接的格式都是<a href='***'>的格式,你只要找出这样的格式的文本然后删除就可以了,至于怎么找可以正则匹配。追问我问的是如何插入超链接,而不是如何删除它