Browse Source

fix #404

pull/473/head
eladeyal 5 years ago
committed by Chris
parent
commit
5266cd2b05
1 changed files with 5 additions and 3 deletions
  1. 8
      gooey/gui/components/console.py

8
gooey/gui/components/console.py

@ -36,10 +36,12 @@ class Console(wx.Panel):
self.layoutComponent()
self.Layout()
self.Bind(wx.EVT_TEXT_URL, self.followUrl, self.textbox)
self.Bind(wx.EVT_TEXT_URL, self.evtUrl, self.textbox)
def followUrl(self, event):
webbrowser.open(self.textbox.GetValue()[event.URLStart:event.URLEnd])
def evtUrl(self, event):
if event.MouseEvent.LeftUp():
webbrowser.open(self.textbox.GetValue()[event.URLStart:event.URLEnd])
event.Skip()
def getFontStyle(self):

Loading…
Cancel
Save