How to unset or disable hyperlinkctrl in wxpython only on some conditions
<p>I have created hyperlinkctrl on my panel.Under some conditions it should be hyperlink but other cases it should be just text not link.</p>

<p>How to do this?</p>

<pre><code>self.Author = wx.HyperlinkCtrl(self, -1, "", "~")

if true:
   self.Author.SetLabel(str(self.aList['Author']))
   self.Author.SetURL("mailto:%s" % str(self.aList['Author']))
else:
   self.Author.SetLabel("N/A")
   self.Author.SetURL("N/A")
</code></pre>

<p>In the else case with <code>"N/A"</code> still it is linking.</p>

<p>can any one tell me how to unset the url in wxPython?</p>