FunctionGUI 0.6.0__py3-none-any.whl → 0.6.2__py3-none-any.whl

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.
@@ -21,16 +21,21 @@ def ScrollBar(root, widget, side="right", fill="y"):
21
21
  scrollbar.pack(side=side, fill=fill)
22
22
  a.config(yscrollcommand=scrollbar.set)
23
23
 
24
- def Label(parent, text="Default Text", font="Helvetica", size=12, color="black"):
25
- label = ttk.Label(parent, text=text, font = (font, size), foreground = color); label.pack();
24
+ def Label(parent, textvariabl, text="Default Text", font="Helvetica", size=12, color="black", wraplenght=2):
25
+ label = ttk.Label(parent, text=text, font = (font, size), foreground = color, wraplength=wraplenght, textvariable=textvariabl)
26
26
  return label
27
27
 
28
+
29
+
28
30
  def Place(widget, x, y):
29
31
  widget.place(x=x, y=y)
30
32
 
31
33
  def Font(name = 'arial', size = 20, weight = "bold"):
32
34
  font = tkfont.Font(name = name, size = size, weight = weight)
33
35
  return font
36
+ def StrVar():
37
+ v = tk.StringVar()
38
+ return v
34
39
 
35
40
  def OpenFile(title):
36
41
  file_path = filedialog.askopenfilename(title="Select a file")
@@ -64,7 +69,7 @@ def Entry(parent, width=20, font="Helvetica", size=12, bg="white", fg="black"):
64
69
 
65
70
  def GetEntry(entry):
66
71
  d = entry.get()
67
- return entry
72
+ return d
68
73
 
69
74
  def Design(theme):
70
75
  style = Style(theme=theme)
@@ -97,9 +102,5 @@ def Entry(parent, width=20, font="Helvetica", size=12, bg="white", fg="black", p
97
102
  entry.pack(padx=padx, pady=pady)
98
103
  return entry
99
104
 
100
- def GetEntry(entry):
101
- d = entry.get()
102
- return entry
103
-
104
105
  def Run(window):
105
106
  window.mainloop()
FunctionGUI/__init__.py CHANGED
@@ -15,6 +15,7 @@ from .FunctionGUI import (
15
15
  ChexBox,
16
16
  add,
17
17
  Design,
18
- ScrollBar
18
+ ScrollBar,
19
+ StrVar
19
20
 
20
21
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: FunctionGUI
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
  Summary: A simple Tkinter GUI library with basic widgets and functionality.
5
5
  Home-page: https://github.com/aa425/FunctionGUI
6
6
  Author: Aaroh Charne
@@ -0,0 +1,6 @@
1
+ FunctionGUI/FunctionGUI.py,sha256=pdZA8rGOfr6mJFy-w4xlgWGmfi-YpPFUcWQq-wxXIGw,3968
2
+ FunctionGUI/__init__.py,sha256=QVxdhpXu8KTDl7ylSFkn7HucZiS2HHLoJSW4nPVPCtY,256
3
+ FunctionGUI-0.6.2.dist-info/METADATA,sha256=9DXQXpR5yO6KnpVpuwYR7ddAx44yNn70hTahO2P1qFc,1724
4
+ FunctionGUI-0.6.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
5
+ FunctionGUI-0.6.2.dist-info/top_level.txt,sha256=_gisKDTO1FqIkJYqH6X1ZrcA0ZvQdKnA_JhABqCSUFo,12
6
+ FunctionGUI-0.6.2.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- FunctionGUI/FunctionGUI.py,sha256=n-RXxNqAMd882Kupc0JbHDPEQHhyeba1_KkhlcZz9LI,3915
2
- FunctionGUI/__init__.py,sha256=SjcMpjfS6UMbvYUYiGNsyJdiBEOhEA_asH0GyPXIvX8,243
3
- FunctionGUI-0.6.0.dist-info/METADATA,sha256=2FRGbZzIuOAwnBk25F0vwPZSdLCufcEfcjNPjHwQSZs,1724
4
- FunctionGUI-0.6.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
5
- FunctionGUI-0.6.0.dist-info/top_level.txt,sha256=_gisKDTO1FqIkJYqH6X1ZrcA0ZvQdKnA_JhABqCSUFo,12
6
- FunctionGUI-0.6.0.dist-info/RECORD,,