分页: 129/248 第一页 上页 124 125 126 127 128 129 130 131 132 133 下页 最后页 [ 显示模式: 摘要 | 列表 ]

wxpython之Hyperlinks 不指定

root , 2008/05/22 21:27 , Python , 评论(0) , 阅读(6949) , Via 本站原创
Hyperlinks
AppSnap displays the website of an application amongst other details. It would be ideal to open the link in the default browser when clicked. Luckily for us, wxPython has a widget just for this.

Let’s create a hyperlink:

# Create hyperlink on an existing panel widget
link = wx.lib.hyperlink.HyperLinkCtrl(parent=panel, pos=(225, 60))

For starters, let’s initialize the link.

# Initialize the hyperlink
link.SetURL(URL=”)
link.SetLabel(label=”)
link.SetToolTipString(tip=”)
Tags:
分页: 129/248 第一页 上页 124 125 126 127 128 129 130 131 132 133 下页 最后页 [ 显示模式: 摘要 | 列表 ]