mirror of https://github.com/python/cpython
Added getaboutmenutext() method. (jvr)
This commit is contained in:
parent
4011723d0d
commit
f51872733c
|
@ -35,7 +35,7 @@ class MiniApplication:
|
||||||
self.quitid = 2
|
self.quitid = 2
|
||||||
Menu.ClearMenuBar()
|
Menu.ClearMenuBar()
|
||||||
self.applemenu = applemenu = Menu.NewMenu(self.appleid, "\024")
|
self.applemenu = applemenu = Menu.NewMenu(self.appleid, "\024")
|
||||||
applemenu.AppendMenu("About %s...;(-" % self.__class__.__name__)
|
applemenu.AppendMenu("%s;(-" % self.getaboutmenutext())
|
||||||
applemenu.AppendResMenu('DRVR')
|
applemenu.AppendResMenu('DRVR')
|
||||||
applemenu.InsertMenu(0)
|
applemenu.InsertMenu(0)
|
||||||
self.quitmenu = Menu.NewMenu(self.quitid, "File")
|
self.quitmenu = Menu.NewMenu(self.quitid, "File")
|
||||||
|
@ -104,6 +104,9 @@ class MiniApplication:
|
||||||
|
|
||||||
def getabouttext(self):
|
def getabouttext(self):
|
||||||
return self.__class__.__name__
|
return self.__class__.__name__
|
||||||
|
|
||||||
|
def getaboutmenutext(self):
|
||||||
|
return "About %s\311" % self.__class__.__name__
|
||||||
|
|
||||||
|
|
||||||
class AEServer:
|
class AEServer:
|
||||||
|
|
Loading…
Reference in New Issue