Пример #1
0
 def event(self, evt):
     if isinstance(evt, QWhatsThisClickedEvent):
         url = wiki_prefix() + evt.href()
         # note: I'm guessing that in older code, this was done
         # by the class MyWhatsThis (still mentioned in some old
         # comments) [bruce 081209 comment]
         webbrowser_open(str(url))  # Must be string. mark 2007-05-10
         # REVIEW: should we call its caller open_wiki_help_URL instead?
         # This would add a history message and some exception catching.
         # Guess: yes, perhaps with a flag to turn off history
         # except when there are errors. [bruce 081209 question]
         return True
     else:
         return NE1_QToolBar.event(self, evt)
Пример #2
0
 def event(self, evt):
     if isinstance(evt, QWhatsThisClickedEvent):
         url = wiki_prefix() + evt.href()
         # note: I'm guessing that in older code, this was done
         # by the class MyWhatsThis (still mentioned in some old
         # comments) [bruce 081209 comment]
         webbrowser_open(str(url))  # Must be string. mark 2007-05-10
         # REVIEW: should we call its caller open_wiki_help_URL instead?
         # This would add a history message and some exception catching.
         # Guess: yes, perhaps with a flag to turn off history
         # except when there are errors. [bruce 081209 question]
         return True
     else:
         return NE1_QToolBar.event(self, evt)
Пример #3
0
 def event(self, evt):
     if isinstance(evt, QWhatsThisClickedEvent):
         url = wiki_prefix() + evt.href()
         webbrowser_open(str(url))  # Must be string. mark 2007-05-10
         return True
     return NE1_QToolBar.event(self, evt)
Пример #4
0
 def event(self, evt):
     if isinstance(evt, QWhatsThisClickedEvent):
         url = wiki_prefix() + evt.href()
         webbrowser_open(str(url)) # Must be string. mark 2007-05-10
         return True
     return NE1_QToolBar.event(self, evt)