[Tutor] Union
Jim
jf_byrnes at comcast.net
Mon Aug 12 17:56:10 EDT 2019
On 8/12/19 4:12 PM, Mats Wichmann wrote:
> On 8/12/19 2:50 PM, Jim wrote:
>> I was reading the docs for PySimpbleGUI here:
>> https://pysimplegui.readthedocs.io/en/latest/#building-custom-windows
>>
>> In the table of parameters for the Window() function for example the
>> icon parameter the meaning is Union[str, str] Can be either a filename
>> or Base64 value.
>>
>> What is the usage of "Union". I don't recall seeing anything like it
>> before.
>
> it's type annotation. Search here:
>
> https://docs.python.org/3/library/typing.html
>
OK, thanks.
Jim
More information about the Tutor
mailing list