Merge pull request #1894 from PySimpleGUI/Dev-latest

Fix for file types conversion.  Must not have ';;' on the end of the …
This commit is contained in:
PySimpleGUI 2019-08-29 14:37:13 -04:00 committed by GitHub
commit 497d332496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/python3
version = __version__ = "0.28.0.1 Unreleased PEP8-ifed"
version = __version__ = "0.28.0.2 Unreleased PEP8-ifed"
import sys
import types
@ -3792,8 +3792,8 @@ def _convert_tkinter_size_to_Qt(size, scaling=DEFAULT_PIXELS_TO_CHARS_SCALING, h
# =========================================================================== #
def convert_tkinter_filetypes_to_qt(filetypes):
qt_filetypes = ''
for item in filetypes:
filetype = item[0] + ' (' + item[1] + ');;'
for i, item in enumerate(filetypes):
filetype = item[0] + ' (' + item[1] + ')' + (';;' if i != len(filetypes)-1 else '')
qt_filetypes += filetype
return qt_filetypes