Typo in new delimiter variable
This commit is contained in:
parent
50dfbba145
commit
d7c0688382
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
version = __version__ = "4.7.1.6 Unreleased - included 4.7.1 patch, ability to update ttk buttons, images for ttk buttons, CURRENT_LOOK_AND_FEEL variable, Multiline colored text (FINALLY), experimental gray window warning/nag, Print/Easyprint multiple color output"
|
||||
version = __version__ = "4.7.1.7 Unreleased - included 4.7.1 patch, ability to update ttk buttons, images for ttk buttons, CURRENT_LOOK_AND_FEEL variable, Multiline colored text (FINALLY), experimental gray window warning/nag, Print/Easyprint multiple color output, BrowseFiles delimeter variable"
|
||||
|
||||
port = 'PySimpleGUI'
|
||||
|
||||
|
@ -368,7 +368,7 @@ BUTTON_TYPE_CALENDAR_CHOOSER = 30
|
|||
BUTTON_TYPE_COLOR_CHOOSER = 40
|
||||
BUTTON_TYPE_SHOW_DEBUGGER = 50
|
||||
|
||||
BROWSE_FILES_DELIMETER = ';' # the delimeter to be used between each file in the returned string
|
||||
BROWSE_FILES_DELIMITER = ';' # the delimeter to be used between each file in the returned string
|
||||
|
||||
# ------------------------- Element types ------------------------- #
|
||||
|
||||
|
@ -2371,7 +2371,7 @@ class Button(Element):
|
|||
else:
|
||||
file_name = tk.filedialog.askopenfilenames(filetypes=filetypes, initialdir=self.InitialFolder, parent=self.ParentForm.TKroot)
|
||||
if file_name != '':
|
||||
file_name = BROWSE_FILES_DELIMETER.join(file_name) # normally a ';'
|
||||
file_name = BROWSE_FILES_DELIMITER.join(file_name) # normally a ';'
|
||||
strvar.set(file_name)
|
||||
self.TKStringVar.set(file_name)
|
||||
elif self.BType == BUTTON_TYPE_SAVEAS_FILE:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#usr/bin/python3
|
||||
|
||||
version = __version__ = "0.33.0.50 Unreleased - added port variable"
|
||||
version = __version__ = "0.33.0.61 Unreleased - added port variable, browse file delimeter varaible (unused currently)"
|
||||
|
||||
port = 'PySimpleGUIWeb'
|
||||
|
||||
|
@ -263,7 +263,7 @@ BUTTON_TYPE_REALTIME = 9
|
|||
BUTTON_TYPE_CALENDAR_CHOOSER = 30
|
||||
BUTTON_TYPE_COLOR_CHOOSER = 40
|
||||
|
||||
BROWSE_FILES_DELIMETER = ';' # the delimeter to be used between each file in the returned string
|
||||
BROWSE_FILES_DELIMITER = ';' # the delimeter to be used between each file in the returned string
|
||||
|
||||
# ------------------------- Element types ------------------------- #
|
||||
# These used to be enums ElementType(Enum):
|
||||
|
@ -1243,7 +1243,7 @@ class Button(Element):
|
|||
else:
|
||||
file_names = ''
|
||||
if file_names != '':
|
||||
file_names = BROWSE_FILES_DELIMETER.join(file_names)
|
||||
file_names = BROWSE_FILES_DELIMITER.join(file_names)
|
||||
if target_element.Type == ELEM_TYPE_BUTTON:
|
||||
target_element.FileOrFolderName = file_names
|
||||
else:
|
||||
|
|
|
@ -261,7 +261,7 @@ BUTTON_TYPE_REALTIME = 9
|
|||
BUTTON_TYPE_CALENDAR_CHOOSER = 30
|
||||
BUTTON_TYPE_COLOR_CHOOSER = 40
|
||||
|
||||
BROWSE_FILES_DELIMETER = ';' # the delimeter to be used between each file in the returned string
|
||||
BROWSE_FILES_DELIMITER = ';' # the delimeter to be used between each file in the returned string
|
||||
|
||||
# ------------------------- Element types ------------------------- #
|
||||
# class ElementType(Enum):
|
||||
|
@ -1383,7 +1383,7 @@ class Button(Element):
|
|||
else:
|
||||
file_names = ''
|
||||
if file_names != '':
|
||||
file_names = BROWSE_FILES_DELIMETER.join(file_names)
|
||||
file_names = BROWSE_FILES_DELIMITER.join(file_names)
|
||||
if target_element.Type == ELEM_TYPE_BUTTON:
|
||||
target_element.FileOrFolderName = file_names
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue