TkEasyGUI 0.2.3__tar.gz → 0.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tkeasygui
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: TkEasyGUI is Easy and Simple GUI Library
5
5
  Author-email: kujirahand <web@kujirahand.com>
6
6
  Maintainer-email: kujirahand <web@kujirahand.com>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tkeasygui"
7
- version = "0.2.3"
7
+ version = "0.2.4"
8
8
  dependencies = [
9
9
  "Pillow",
10
10
  ]
@@ -5,5 +5,5 @@ TkEasyGUI - A simple GUI library for Python using tkinter.
5
5
  from tkeasygui.dialogs import * # noqa: F403
6
6
  from tkeasygui.widgets import * # noqa: F403
7
7
 
8
- __version__ = "0.2.3"
8
+ __version__ = "0.2.4"
9
9
 
@@ -1408,6 +1408,23 @@ class FilesBrowse(FileBrowse):
1408
1408
  self.multiple_files = True
1409
1409
  self.save_as = False
1410
1410
 
1411
+ class FileSaveAsBrowse(FileBrowse):
1412
+ """FileSaveAsBrowse element."""
1413
+ def __init__(self, button_text: str="...", key: str="", target_key: str|None=None,
1414
+ title: str="", file_types: tuple[tuple[str, str]]=(("All Files", "*.*"),), **kw) -> None:
1415
+ super().__init__("FileSaveAsBrowse", key, **kw)
1416
+ self.target_key = target_key
1417
+ self.title = title
1418
+ self.file_types = file_types
1419
+ self.props["text"] = button_text
1420
+ # force set params
1421
+ self.multiple_files = False
1422
+ self.save_as = True
1423
+
1424
+ class FileSaveAs(FileBrowse):
1425
+ """FileSaveAs element. (alias of FileSaveAsBrowse)"""
1426
+ pass
1427
+
1411
1428
  class FolderBrowse(FileBrowse):
1412
1429
  """FolderBrowse element."""
1413
1430
  def __init__(self, button_text: str="...", key: str="", target_key: str|None=None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tkeasygui
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: TkEasyGUI is Easy and Simple GUI Library
5
5
  Author-email: kujirahand <web@kujirahand.com>
6
6
  Maintainer-email: kujirahand <web@kujirahand.com>
File without changes
File without changes
File without changes