1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937
|
.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2018 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. _wx.adv.AboutDialogInfo:
==========================================================================================================================================
|phoenix_title| **wx.adv.AboutDialogInfo**
==========================================================================================================================================
:ref:`wx.adv.AboutDialogInfo` contains information shown in the standard `About` dialog displayed by the :ref:`wx.adv.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 :ref:`ArrayString` and can be either set entirely at once using :meth:`wx.adv.AboutDialogInfo.SetDevelopers` and similar functions or built one by one using :meth:`wx.adv.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 :ref:`wx.adv.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, :ref:`wx.adv.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.adv.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.adv.AboutBox(aboutInfo)
.. seealso:: :meth:`wx.adv.AboutDialogInfo.SetArtists`
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html
<div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
<img id="toggleBlock-trigger" src="_static/images/closed.png"/>
Inheritance diagram for class <strong>AboutDialogInfo</strong>:
</div>
<div id="toggleBlock-summary" style="display:block;"></div>
<div id="toggleBlock-content" style="display:none;">
<p class="graphviz">
<center><img src="_static/images/inheritance/wx.adv.AboutDialogInfo_inheritance.png" alt="Inheritance diagram of AboutDialogInfo" usemap="#dummy" class="inheritance"/></center>
</div>
<script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
<map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.adv.AboutDialogInfo.html" title="wx.adv.AboutDialogInfo" alt="" coords="5,5,173,35"/> </map>
</p>
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.adv.AboutDialogInfo.__init__` Default constructor leaves all fields are initially uninitialized, in general you should call at least :meth:`~AboutDialogInfo.SetVersion` , :meth:`~AboutDialogInfo.SetCopyright` and :meth:`~AboutDialogInfo.SetDescription` .
:meth:`~wx.adv.AboutDialogInfo.AddArtist` Adds an artist name to be shown in the program credits.
:meth:`~wx.adv.AboutDialogInfo.AddDeveloper` Adds a developer name to be shown in the program credits.
:meth:`~wx.adv.AboutDialogInfo.AddDocWriter` Adds a documentation writer name to be shown in the program credits.
:meth:`~wx.adv.AboutDialogInfo.AddTranslator` Adds a translator name to be shown in the program credits.
:meth:`~wx.adv.AboutDialogInfo.GetArtists` Returns an array of the artist strings set in the dialog info.
:meth:`~wx.adv.AboutDialogInfo.GetCopyright` Get the copyright string.
:meth:`~wx.adv.AboutDialogInfo.GetDescription` Get the description string.
:meth:`~wx.adv.AboutDialogInfo.GetDevelopers` Returns an array of the developer strings set in the dialog info.
:meth:`~wx.adv.AboutDialogInfo.GetDocWriters` Returns an array of the writer strings set in the dialog info.
:meth:`~wx.adv.AboutDialogInfo.GetIcon` Returns the icon set by :meth:`~AboutDialogInfo.SetIcon` .
:meth:`~wx.adv.AboutDialogInfo.GetLicence` Returns the licence string.
:meth:`~wx.adv.AboutDialogInfo.GetLongVersion` Return the long version string if set.
:meth:`~wx.adv.AboutDialogInfo.GetName` Get the name of the program.
:meth:`~wx.adv.AboutDialogInfo.GetTranslators` Returns an array of the translator strings set in the dialog info.
:meth:`~wx.adv.AboutDialogInfo.GetVersion` Return the short version string.
:meth:`~wx.adv.AboutDialogInfo.GetWebSiteDescription` Returns the description of the website URL set for the dialog.
:meth:`~wx.adv.AboutDialogInfo.GetWebSiteURL` Returns the website URL set for the dialog.
:meth:`~wx.adv.AboutDialogInfo.HasArtists` Returns ``True`` if artists have been set in the dialog info.
:meth:`~wx.adv.AboutDialogInfo.HasCopyright` Returns ``True`` if a copyright string has been specified.
:meth:`~wx.adv.AboutDialogInfo.HasDescription` Returns ``True`` if a description string has been specified.
:meth:`~wx.adv.AboutDialogInfo.HasDevelopers` Returns ``True`` if developers have been set in the dialog info.
:meth:`~wx.adv.AboutDialogInfo.HasDocWriters` Returns ``True`` if writers have been set in the dialog info.
:meth:`~wx.adv.AboutDialogInfo.HasIcon` Returns ``True`` if an icon has been set for the about dialog.
:meth:`~wx.adv.AboutDialogInfo.HasLicence` Returns ``True`` if the licence string has been set.
:meth:`~wx.adv.AboutDialogInfo.HasTranslators` Returns ``True`` if translators have been set in the dialog info.
:meth:`~wx.adv.AboutDialogInfo.HasWebSite` Returns ``True`` if the website info has been set.
:meth:`~wx.adv.AboutDialogInfo.SetArtists` Sets the list of artists to be shown in the program credits.
:meth:`~wx.adv.AboutDialogInfo.SetCopyright` Set the short string containing the program copyright information.
:meth:`~wx.adv.AboutDialogInfo.SetDescription` Set brief, but possibly multiline, description of the program.
:meth:`~wx.adv.AboutDialogInfo.SetDevelopers` Set the list of developers of the program.
:meth:`~wx.adv.AboutDialogInfo.SetDocWriters` Set the list of documentation writers.
:meth:`~wx.adv.AboutDialogInfo.SetIcon` Set the icon to be shown in the dialog.
:meth:`~wx.adv.AboutDialogInfo.SetLicence` Set the long, multiline string containing the text of the program licence.
:meth:`~wx.adv.AboutDialogInfo.SetLicense` This is the same as :meth:`~AboutDialogInfo.SetLicence` .
:meth:`~wx.adv.AboutDialogInfo.SetName` Set the name of the program.
:meth:`~wx.adv.AboutDialogInfo.SetTranslators` Set the list of translators.
:meth:`~wx.adv.AboutDialogInfo.SetVersion` Set the version of the program.
:meth:`~wx.adv.AboutDialogInfo.SetWebSite` Set the web site for the program and its description (which defaults to `url` itself if empty).
================================================================================ ================================================================================
|
|property_summary| Properties Summary
=====================================
================================================================================ ================================================================================
:attr:`~wx.adv.AboutDialogInfo.Artists` See :meth:`~wx.adv.AboutDialogInfo.GetArtists` and :meth:`~wx.adv.AboutDialogInfo.SetArtists`
:attr:`~wx.adv.AboutDialogInfo.Copyright` See :meth:`~wx.adv.AboutDialogInfo.GetCopyright` and :meth:`~wx.adv.AboutDialogInfo.SetCopyright`
:attr:`~wx.adv.AboutDialogInfo.Description` See :meth:`~wx.adv.AboutDialogInfo.GetDescription` and :meth:`~wx.adv.AboutDialogInfo.SetDescription`
:attr:`~wx.adv.AboutDialogInfo.Developers` See :meth:`~wx.adv.AboutDialogInfo.GetDevelopers` and :meth:`~wx.adv.AboutDialogInfo.SetDevelopers`
:attr:`~wx.adv.AboutDialogInfo.DocWriters` See :meth:`~wx.adv.AboutDialogInfo.GetDocWriters` and :meth:`~wx.adv.AboutDialogInfo.SetDocWriters`
:attr:`~wx.adv.AboutDialogInfo.Icon` See :meth:`~wx.adv.AboutDialogInfo.GetIcon` and :meth:`~wx.adv.AboutDialogInfo.SetIcon`
:attr:`~wx.adv.AboutDialogInfo.Licence` See :meth:`~wx.adv.AboutDialogInfo.GetLicence` and :meth:`~wx.adv.AboutDialogInfo.SetLicence`
:attr:`~wx.adv.AboutDialogInfo.LongVersion` See :meth:`~wx.adv.AboutDialogInfo.GetLongVersion`
:attr:`~wx.adv.AboutDialogInfo.Name` See :meth:`~wx.adv.AboutDialogInfo.GetName` and :meth:`~wx.adv.AboutDialogInfo.SetName`
:attr:`~wx.adv.AboutDialogInfo.Translators` See :meth:`~wx.adv.AboutDialogInfo.GetTranslators` and :meth:`~wx.adv.AboutDialogInfo.SetTranslators`
:attr:`~wx.adv.AboutDialogInfo.Version` See :meth:`~wx.adv.AboutDialogInfo.GetVersion` and :meth:`~wx.adv.AboutDialogInfo.SetVersion`
:attr:`~wx.adv.AboutDialogInfo.WebSiteDescription` See :meth:`~wx.adv.AboutDialogInfo.GetWebSiteDescription`
:attr:`~wx.adv.AboutDialogInfo.WebSiteURL` See :meth:`~wx.adv.AboutDialogInfo.GetWebSiteURL`
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.adv.AboutDialogInfo(object)
**Possible constructors**::
AboutDialogInfo()
AboutDialogInfo contains information shown in the standard About
dialog displayed by the AboutBox() function.
.. method:: __init__(self)
Default constructor leaves all fields are initially uninitialized, in general you should call at least :meth:`SetVersion` , :meth:`SetCopyright` and :meth:`SetDescription` .
.. method:: AddArtist(self, artist)
Adds an artist name to be shown in the program credits.
:param `artist`:
:type `artist`: string
.. seealso:: :meth:`SetArtists`
.. method:: AddDeveloper(self, developer)
Adds a developer name to be shown in the program credits.
:param `developer`:
:type `developer`: string
.. seealso:: :meth:`SetDevelopers`
.. method:: AddDocWriter(self, docwriter)
Adds a documentation writer name to be shown in the program credits.
:param `docwriter`:
:type `docwriter`: string
.. seealso:: :meth:`SetDocWriters`
.. method:: AddTranslator(self, translator)
Adds a translator name to be shown in the program credits.
Notice that if no translator names are specified explicitly, :ref:`wx.adv.AboutBox` will try to use the translation of the string ``translator-credits`` from the currently used message catalog
:param `translator`:
:type `translator`: string
.. seealso:: :meth:`SetTranslators`
.. method:: GetArtists(self)
Returns an array of the artist strings set in the dialog info.
:rtype: `list of strings`
.. method:: GetCopyright(self)
Get the copyright string.
:rtype: `string`
:returns:
The copyright string
.. method:: GetDescription(self)
Get the description string.
:rtype: `string`
:returns:
The description string, free-form.
.. method:: GetDevelopers(self)
Returns an array of the developer strings set in the dialog info.
:rtype: `list of strings`
.. method:: GetDocWriters(self)
Returns an array of the writer strings set in the dialog info.
:rtype: `list of strings`
.. method:: GetIcon(self)
Returns the icon set by :meth:`SetIcon` .
:rtype: :ref:`Icon`
.. method:: GetLicence(self)
Returns the licence string.
:rtype: `string`
.. seealso:: :meth:`SetLicence`
.. method:: GetLongVersion(self)
Return the long version string if set.
:rtype: `string`
.. seealso:: :meth:`SetVersion`
.. method:: GetName(self)
Get the name of the program.
:rtype: `string`
:returns:
Name of the program
.. seealso:: :meth:`SetName`
.. method:: GetTranslators(self)
Returns an array of the translator strings set in the dialog info.
:rtype: `list of strings`
.. method:: GetVersion(self)
Return the short version string.
:rtype: `string`
.. seealso:: :meth:`SetVersion`
.. method:: GetWebSiteDescription(self)
Returns the description of the website URL set for the dialog.
:rtype: `string`
.. method:: GetWebSiteURL(self)
Returns the website URL set for the dialog.
:rtype: `string`
.. method:: HasArtists(self)
Returns ``True`` if artists have been set in the dialog info.
:rtype: `bool`
.. method:: HasCopyright(self)
Returns ``True`` if a copyright string has been specified.
:rtype: `bool`
.. seealso:: :meth:`GetCopyright`
.. method:: HasDescription(self)
Returns ``True`` if a description string has been specified.
:rtype: `bool`
.. seealso:: :meth:`GetDescription`
.. method:: HasDevelopers(self)
Returns ``True`` if developers have been set in the dialog info.
:rtype: `bool`
.. method:: HasDocWriters(self)
Returns ``True`` if writers have been set in the dialog info.
:rtype: `bool`
.. method:: HasIcon(self)
Returns ``True`` if an icon has been set for the about dialog.
:rtype: `bool`
.. method:: HasLicence(self)
Returns ``True`` if the licence string has been set.
:rtype: `bool`
.. method:: HasTranslators(self)
Returns ``True`` if translators have been set in the dialog info.
:rtype: `bool`
.. method:: HasWebSite(self)
Returns ``True`` if the website info has been set.
:rtype: `bool`
.. method:: SetArtists(self, artists)
Sets the list of artists to be shown in the program credits.
:param `artists`:
:type `artists`: list of strings
.. seealso:: :meth:`AddArtist`
.. method:: SetCopyright(self, copyright)
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,
:param `copyright`:
:type `copyright`: string
.. method:: SetDescription(self, desc)
Set brief, but possibly multiline, description of the program.
:param `desc`:
:type `desc`: string
.. method:: SetDevelopers(self, developers)
Set the list of developers of the program.
:param `developers`:
:type `developers`: list of strings
.. seealso:: :meth:`AddDeveloper`
.. method:: SetDocWriters(self, docwriters)
Set the list of documentation writers.
:param `docwriters`:
:type `docwriters`: list of strings
.. seealso:: :meth:`AddDocWriter`
.. method:: SetIcon(self, icon)
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.
:param `icon`:
:type `icon`: wx.Icon
.. method:: SetLicence(self, licence)
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.
:param `licence`:
:type `licence`: string
.. method:: SetLicense(self, licence)
This is the same as :meth:`SetLicence` .
:param `licence`:
:type `licence`: string
.. method:: SetName(self, name)
Set the name of the program.
If this method is not called, the string returned by :meth:`wx.App.GetAppName` will be shown in the dialog.
:param `name`:
:type `name`: string
.. method:: SetTranslators(self, translators)
Set the list of translators.
Please see :meth:`AddTranslator` for additional discussion.
:param `translators`:
:type `translators`: list of strings
.. method:: SetVersion(self, version, longVersion="")
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.
:param `version`:
:type `version`: string
:param `longVersion`:
:type `longVersion`: string
.. method:: SetWebSite(self, url, desc=EmptyString)
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.
:param `url`:
:type `url`: string
:param `desc`:
:type `desc`: string
.. attribute:: Artists
See :meth:`~wx.adv.AboutDialogInfo.GetArtists` and :meth:`~wx.adv.AboutDialogInfo.SetArtists`
.. attribute:: Copyright
See :meth:`~wx.adv.AboutDialogInfo.GetCopyright` and :meth:`~wx.adv.AboutDialogInfo.SetCopyright`
.. attribute:: Description
See :meth:`~wx.adv.AboutDialogInfo.GetDescription` and :meth:`~wx.adv.AboutDialogInfo.SetDescription`
.. attribute:: Developers
See :meth:`~wx.adv.AboutDialogInfo.GetDevelopers` and :meth:`~wx.adv.AboutDialogInfo.SetDevelopers`
.. attribute:: DocWriters
See :meth:`~wx.adv.AboutDialogInfo.GetDocWriters` and :meth:`~wx.adv.AboutDialogInfo.SetDocWriters`
.. attribute:: Icon
See :meth:`~wx.adv.AboutDialogInfo.GetIcon` and :meth:`~wx.adv.AboutDialogInfo.SetIcon`
.. attribute:: Licence
See :meth:`~wx.adv.AboutDialogInfo.GetLicence` and :meth:`~wx.adv.AboutDialogInfo.SetLicence`
.. attribute:: LongVersion
See :meth:`~wx.adv.AboutDialogInfo.GetLongVersion`
.. attribute:: Name
See :meth:`~wx.adv.AboutDialogInfo.GetName` and :meth:`~wx.adv.AboutDialogInfo.SetName`
.. attribute:: Translators
See :meth:`~wx.adv.AboutDialogInfo.GetTranslators` and :meth:`~wx.adv.AboutDialogInfo.SetTranslators`
.. attribute:: Version
See :meth:`~wx.adv.AboutDialogInfo.GetVersion` and :meth:`~wx.adv.AboutDialogInfo.SetVersion`
.. attribute:: WebSiteDescription
See :meth:`~wx.adv.AboutDialogInfo.GetWebSiteDescription`
.. attribute:: WebSiteURL
See :meth:`~wx.adv.AboutDialogInfo.GetWebSiteURL`
|