AboutDialogInfo contains information shown in the standard About dialog displayed by the AboutBox function.
This class contains the general information about the program, such as its name, version, copyright and so on, as well as lists of the program developers, documentation writers, artists and translators. The simple properties from the former group are represented as a string with the exception of the program icon and the program web site, while the lists from the latter group are stored as ArrayString and can be either set entirely at once using AboutDialogInfo.SetDevelopers and similar functions or built one by one using AboutDialogInfo.AddDeveloper etc.
Please also notice that while all the main platforms have the native implementation of the about dialog, they are often more limited than the generic version provided by wxWidgets and so the generic version is used if AboutDialogInfo has any fields not supported by the native version. Currently GTK+ version supports all the possible fields natively but MSW and Mac versions don’t support URLs, licence text nor custom icons in the about dialog and if either of those is used, AboutBox will automatically use the generic version so you should avoid specifying these fields to achieve more native look and feel.
Example of usage:
def OnAbout(self, event):
aboutInfo = wx.AboutDialogInfo()
aboutInfo.SetName("MyApp")
aboutInfo.SetVersion(MY_APP_VERSION_STRING)
aboutInfo.SetDescription(_("My wxPython-based application!"))
aboutInfo.SetCopyright("(C) 1992-2012")
aboutInfo.SetWebSite("http:#myapp.org")
aboutInfo.AddDeveloper("My Self")
wx.AboutBox(aboutInfo)
See also
__init__ | Default constructor leaves all fields are initially uninitialized, in general you should call at least SetVersion , SetCopyright and SetDescription . |
AddArtist | Adds an artist name to be shown in the program credits. |
AddDeveloper | Adds a developer name to be shown in the program credits. |
AddDocWriter | Adds a documentation writer name to be shown in the program credits. |
AddTranslator | Adds a translator name to be shown in the program credits. |
GetCopyright | Get the copyright string. |
GetDescription | Get the description string. |
GetName | Get the name of the program. |
HasCopyright | Returns True if a copyright string has been specified. |
HasDescription | Returns True if a description string has been specified. |
SetArtists | Sets the list of artists to be shown in the program credits. |
SetCopyright | Set the short string containing the program copyright information. |
SetDescription | Set brief, but possibly multiline, description of the program. |
SetDevelopers | Set the list of developers of the program. |
SetDocWriters | Set the list of documentation writers. |
SetIcon | Set the icon to be shown in the dialog. |
SetLicence | Set the long, multiline string containing the text of the program licence. |
SetLicense | This is the same as SetLicence . |
SetName | Set the name of the program. |
SetTranslators | Set the list of translators. |
SetVersion | Set the version of the program. |
SetWebSite | Set the web site for the program and its description (which defaults to url itself if empty). |
Copyright | See GetCopyright and SetCopyright |
Description | See GetDescription and SetDescription |
Name | See GetName and SetName |
AboutDialogInfo contains information shown in the standard About dialog displayed by the AboutBox() function.
Possible constructors:
AboutDialogInfo()
Default constructor leaves all fields are initially uninitialized, in general you should call at least SetVersion , SetCopyright and SetDescription .
Adds an artist name to be shown in the program credits.
Parameters: | artist (string) – |
---|
See also
Adds a developer name to be shown in the program credits.
Parameters: | developer (string) – |
---|
See also
Adds a documentation writer name to be shown in the program credits.
Parameters: | docwriter (string) – |
---|
See also
Adds a translator name to be shown in the program credits.
Notice that if no translator names are specified explicitly, AboutBox will try to use the translation of the string translator-credits from the currently used message catalog – this can be used to show just the name of the translator of the program in the current language.
Parameters: | translator (string) – |
---|
See also
Get the copyright string.
Return type: | string |
---|---|
Returns: | The copyright string |
Get the description string.
Return type: | string |
---|---|
Returns: | The description string, free-form. |
Get the name of the program.
Return type: | string |
---|---|
Returns: | Name of the program |
See also
Returns True if a copyright string has been specified.
Return type: | bool |
---|
See also
Returns True if a description string has been specified.
Return type: | bool |
---|
See also
Sets the list of artists to be shown in the program credits.
Parameters: | artists (list of strings) – |
---|
See also
Set the short string containing the program copyright information.
Notice that any occurrences of "(C)" in copyright will be replaced by the copyright symbol (circled C) automatically, which means that you can avoid using this symbol in the program source code which can be problematic,
Parameters: | copyright (string) – |
---|
Set brief, but possibly multiline, description of the program.
Parameters: | desc (string) – |
---|
Set the list of developers of the program.
Parameters: | developers (list of strings) – |
---|
See also
Set the list of documentation writers.
Parameters: | docwriters (list of strings) – |
---|
See also
Set the icon to be shown in the dialog.
By default the icon of the main frame will be shown if the native about dialog supports custom icons. If it doesn’t but a valid icon is specified using this method, the generic about dialog is used instead so you should avoid calling this function for maximally native look and feel.
Parameters: | icon (Icon) – |
---|
Set the long, multiline string containing the text of the program licence.
Only GTK+ version supports showing the licence text in the native about dialog currently so the generic version will be used under all the other platforms if this method is called. To preserve the native look and feel it is advised that you do not call this method but provide a separate menu item in the "Help" menu for displaying the text of your program licence.
Parameters: | licence (string) – |
---|
This is the same as SetLicence .
Parameters: | licence (string) – |
---|
Set the name of the program.
If this method is not called, the string returned by App.GetAppName will be shown in the dialog.
Parameters: | name (string) – |
---|
Set the list of translators.
Please see AddTranslator for additional discussion.
Parameters: | translators (list of strings) – |
---|
Set the version of the program.
The word “version” shouldn’t be included in version. Example version values: “1.2” and “RC2”. In about dialogs with more space set aside for version information, longVersion is used. Example longVersion values: “Version 1.2” and “Release Candidate 2”. If version is non-empty but longVersion is empty, a long version is constructed automatically, using version (by simply prepending “Version ” to version).
The generic about dialog and native GTK+ dialog use version only, as a suffix to the program name. The native MSW and OS X about dialogs use the long version.
Parameters: |
|
---|
Set the web site for the program and its description (which defaults to url itself if empty).
Please notice that only GTK+ version currently supports showing the link in the native about dialog so if this method is called, the generic version will be used under all the other platforms.
Parameters: |
|
---|
See GetCopyright and SetCopyright
See GetDescription and SetDescription