2 @package libtextworker.interface.wx.about
3 @brief About dialog for wxPython projects
14 from typing
import Any
15 from ...general
import CraftItems
16 from ...
import LICENSES
21 About dialog built with wxPython.
22 All self-set infomations are stored in the ```infos``` attribute.
23 Just run ShowBox() to see your work.
24 You can set the parent of the dialog if needed, use the Parent variable.
25 This class is ~~not~~ sub-class-able. (since 0.1.4)
28 infos = wx.adv.AboutDialogInfo()
29 Parent: Any |
None =
None
31 SetArtists = infos.SetArtists
32 SetCopyright = infos.SetCopyright
33 SetDescription = infos.SetDescription
34 SetDevelopers = infos.SetDevelopers
35 SetDocWriters = infos.SetDocWriters
36 SetIcon = infos.SetIcon
37 SetName = infos.SetName
38 SetTranslators = infos.SetTranslators
39 SetVersion = infos.SetVersion
40 SetWebSite = infos.SetWebSite
42 def SetLicense(self, license: str, include_copyright: bool =
False):
44 Set the long, multiline string containing the text of the program license.
45 @see available_licenses
50 if include_copyright ==
True and self.
infosinfos.GetCopyright() !=
"":
51 data += self.
infosinfos.GetCopyright() +
"\n"
54 self.
infosinfos.SetLicence(data)
58 Shows a About dialog with infomations collected.
59 @param event | None: wxPython event
60 @return wx.adv.AboutBox: About window
62 return wx.adv.AboutBox(self.
infosinfos, self.Parent)
def SetLicense(self, str license, bool include_copyright=False)
def ShowBox(self, event=None)