- Search for a wxPython installation that matches version.
-
- :param version: Specifies the version to look for, it can
- either be a string or a list of strings. Each
- string is compared to the installed wxPythons
- and the best match is inserted into the
- sys.path, allowing an 'import wx' to find that
- version.
-
- The version string is composed of the dotted
- version number (at least 2 of the 4 components)
- optionally followed by hyphen ('-') separated
- options (wx port, unicode/ansi, flavour, etc.) A
- match is determined by how much of the installed
- version matches what is given in the version
- parameter. If the version number components don't
- match then the score is zero, otherwise the score
- is increased for every specified optional component
- that is specified and that matches.
+ Search for a wxPython installation that matches version. If one
+ is found then sys.path is modified so that version will be
+ imported with a 'import wx', otherwise a VersionError exception is
+ raised. This funciton should only be caled once at the begining
+ of the application before wxPython is imported.
+
+ :param versions: Specifies the version to look for, it can
+ either be a string or a list of strings. Each string is
+ compared to the installed wxPythons and the best match is
+ inserted into the sys.path, allowing an 'import wx' to
+ find that version.
+
+ The version string is composed of the dotted version
+ number (at least 2 of the 4 components) optionally
+ followed by hyphen ('-') separated options (wx port,
+ unicode/ansi, flavour, etc.) A match is determined by how
+ much of the installed version matches what is given in the
+ version parameter. If the version number components don't
+ match then the score is zero, otherwise the score is
+ increased for every specified optional component that is
+ specified and that matches.
+
+ Please note, however, that it is possible for a match to
+ be selected that doesn't exactly match the versions
+ requested. The only component that is required to be
+ matched is the version number. If you need to require a
+ match on the other components as well, then please use the
+ optional ``optionsRequired`` parameter described next.
+
+ :param optionsRequired: Allows you to specify that the other
+ components of the version string (such as the port name
+ or character type) are also required to be present for an
+ installed version to be considered a match. Using this
+ parameter allows you to change the selection from a soft,
+ as close as possible match to a hard, exact match.
+