pygui_simple 0.1.1__tar.gz → 0.2.0__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.4
2
2
  Name: pygui_simple
3
- Version: 0.1.1
3
+ Version: 0.2.0
4
4
  Summary: A simple gui library
5
5
  Author: Youchee
6
6
  Author-email: Youchee <youchi.xu@live.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pygui_simple"
3
- version = "0.1.1"
3
+ version = "0.2.0"
4
4
  description = "A simple gui library"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -340,10 +340,16 @@ class NotebookCtrl(tkControl):
340
340
 
341
341
  # TODO: not fininsed
342
342
  class FrameCtrl(tkControl):
343
- def __init__(self, parent: tk.Misc, idself: str, **options):
343
+ def __init__(self, parent: tk.Misc, idself: str, columnconfigure: str = "", **options):
344
344
  ctrl = tk.Frame(parent, **options)
345
345
  tkControl.__init__(self, parent, "", idself, ctrl)
346
346
 
347
+ if columnconfigure:
348
+ lst = columnconfigure.strip('()').split(',')
349
+ colcfgs = tuple(int(x) for x in lst)
350
+ for i, wgh in enumerate(colcfgs):
351
+ _ = ctrl.columnconfigure(i, weight=wgh)
352
+
347
353
  @override
348
354
  def destroy(self):
349
355
  # po(f"FrameCtrl {self._idself} destroy")
File without changes
File without changes