Typo in new delimiter variable
This commit is contained in:
parent
50dfbba145
commit
d7c0688382
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/python3
|
#!/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'
|
port = 'PySimpleGUI'
|
||||||
|
|
||||||
|
@ -368,7 +368,7 @@ BUTTON_TYPE_CALENDAR_CHOOSER = 30
|
||||||
BUTTON_TYPE_COLOR_CHOOSER = 40
|
BUTTON_TYPE_COLOR_CHOOSER = 40
|
||||||
BUTTON_TYPE_SHOW_DEBUGGER = 50
|
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 ------------------------- #
|
# ------------------------- Element types ------------------------- #
|
||||||
|
|
||||||
|
@ -2371,7 +2371,7 @@ class Button(Element):
|
||||||
else:
|
else:
|
||||||
file_name = tk.filedialog.askopenfilenames(filetypes=filetypes, initialdir=self.InitialFolder, parent=self.ParentForm.TKroot)
|
file_name = tk.filedialog.askopenfilenames(filetypes=filetypes, initialdir=self.InitialFolder, parent=self.ParentForm.TKroot)
|
||||||
if file_name != '':
|
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)
|
strvar.set(file_name)
|
||||||
self.TKStringVar.set(file_name)
|
self.TKStringVar.set(file_name)
|
||||||
elif self.BType == BUTTON_TYPE_SAVEAS_FILE:
|
elif self.BType == BUTTON_TYPE_SAVEAS_FILE:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#usr/bin/python3
|
#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'
|
port = 'PySimpleGUIWeb'
|
||||||
|
|
||||||
|
@ -263,7 +263,7 @@ BUTTON_TYPE_REALTIME = 9
|
||||||
BUTTON_TYPE_CALENDAR_CHOOSER = 30
|
BUTTON_TYPE_CALENDAR_CHOOSER = 30
|
||||||
BUTTON_TYPE_COLOR_CHOOSER = 40
|
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 ------------------------- #
|
# ------------------------- Element types ------------------------- #
|
||||||
# These used to be enums ElementType(Enum):
|
# These used to be enums ElementType(Enum):
|
||||||
|
@ -1243,7 +1243,7 @@ class Button(Element):
|
||||||
else:
|
else:
|
||||||
file_names = ''
|
file_names = ''
|
||||||
if 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:
|
if target_element.Type == ELEM_TYPE_BUTTON:
|
||||||
target_element.FileOrFolderName = file_names
|
target_element.FileOrFolderName = file_names
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -261,7 +261,7 @@ BUTTON_TYPE_REALTIME = 9
|
||||||
BUTTON_TYPE_CALENDAR_CHOOSER = 30
|
BUTTON_TYPE_CALENDAR_CHOOSER = 30
|
||||||
BUTTON_TYPE_COLOR_CHOOSER = 40
|
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 ------------------------- #
|
# ------------------------- Element types ------------------------- #
|
||||||
# class ElementType(Enum):
|
# class ElementType(Enum):
|
||||||
|
@ -1383,7 +1383,7 @@ class Button(Element):
|
||||||
else:
|
else:
|
||||||
file_names = ''
|
file_names = ''
|
||||||
if 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:
|
if target_element.Type == ELEM_TYPE_BUTTON:
|
||||||
target_element.FileOrFolderName = file_names
|
target_element.FileOrFolderName = file_names
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue