Added getaboutmenutext() method. (jvr)

This commit is contained in:
Just van Rossum 2000-03-28 13:57:34 +00:00
parent 4011723d0d
commit f51872733c
1 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class MiniApplication:
self.quitid = 2
Menu.ClearMenuBar()
self.applemenu = applemenu = Menu.NewMenu(self.appleid, "\024")
applemenu.AppendMenu("About %s...;(-" % self.__class__.__name__)
applemenu.AppendMenu("%s;(-" % self.getaboutmenutext())
applemenu.AppendResMenu('DRVR')
applemenu.InsertMenu(0)
self.quitmenu = Menu.NewMenu(self.quitid, "File")
@ -105,6 +105,9 @@ class MiniApplication:
def getabouttext(self):
return self.__class__.__name__
def getaboutmenutext(self):
return "About %s\311" % self.__class__.__name__
class AEServer: