示例#1
0
 def about(self, *e):
     ABOUT = ("NLTK Concordance Search Demo\n")
     TITLE = 'About: NLTK Concordance Search Demo'
     try:
         from tkMessageBox import Message
         Message(message=ABOUT, title=TITLE, parent=self.main_frame).show()
     except:
         ShowText(self.top, TITLE, ABOUT)
示例#2
0
 def about(self, *e):
     ABOUT = ("NLTK Shift-Reduce Parser Demo\n" + "Written by Edward Loper")
     TITLE = 'About: Shift-Reduce Parser Demo'
     try:
         from tkMessageBox import Message
         Message(message=ABOUT, title=TITLE).show()
     except:
         ShowText(self._top, TITLE, ABOUT)
示例#3
0
 def about(self, *e):
     ABOUT = ("NLTK Discourse Representation Theory (DRT) Glue Semantics Demo\n"+
              "Written by Daniel H. Garrette")
     TITLE = 'About: NLTK DRT Glue Demo'
     try:
         from tkMessageBox import Message
         Message(message=ABOUT, title=TITLE).show()
     except:
         ShowText(self._top, TITLE, ABOUT)
示例#4
0
 def about(self, *e):
     ABOUT = ("NLTK Recursive Descent Parser Application\n" +
              "Written by Edward Loper")
     TITLE = 'About: Recursive Descent Parser Application'
     try:
         from tkMessageBox import Message
         Message(message=ABOUT, title=TITLE).show()
     except:
         ShowText(self._top, TITLE, ABOUT)
示例#5
0
 def about(self, *e):
     """
     Dispaly an 'about' dialog window for the NLTK plot tool.
     """
     ABOUT = ("NLTK Plot Tool\n" "<http://nltk.sourceforge.net>")
     TITLE = 'About: Plot Tool'
     if isinstance(self._plot, BLTPlotFrame):
         ABOUT += '\n\nBased on the BLT Widget'
     try:
         from tkMessageBox import Message
         Message(message=ABOUT, title=TITLE).show()
     except:
         ShowText(self._root, TITLE, ABOUT)