예제 #1
0
파일: dMenuBar.py 프로젝트: jjkalucki/dabo
	def _getGenericMenu(self, caption, MenuID=None):
		"""
		Returns a dMenu instance with the passed caption.

		This is used by the append(), insert(), and prepend() functions.
		"""
		return dMenu.dMenu(self, Caption=caption, MenuID=MenuID)
예제 #2
0
    def _getGenericMenu(self, caption, MenuID=None):
        """
		Returns a dMenu instance with the passed caption.

		This is used by the append(), insert(), and prepend() functions.
		"""
        return dMenu.dMenu(self, Caption=caption, MenuID=MenuID)
예제 #3
0
	def getMenu(self):
		"""
		Get the navigation menu for this form.

		Every form maintains an internal menu of actions appropriate to itself.
		For instance, a dForm with a primary bizobj will maintain a menu with
		'requery', 'save', 'next', etc. choices.

		This function sets up the internal menu, which can optionally be
		inserted into the mainForm's menu bar during SetFocus.
		"""
		menu = dMenu.dMenu()
		return menu
예제 #4
0
	def getMenu(self):
		"""
		Get the navigation menu for this form.

		Every form maintains an internal menu of actions appropriate to itself.
		For instance, a dForm with a primary bizobj will maintain a menu with
		'requery', 'save', 'next', etc. choices.

		This function sets up the internal menu, which can optionally be
		inserted into the mainForm's menu bar during SetFocus.
		"""
		menu = dMenu.dMenu()
		return menu