FunctionGUI 0.3.0__py3-none-any.whl → 0.5.0__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.
@@ -15,6 +15,12 @@ def Title(root, title = "New Window"):
15
15
  a = root.title(title)
16
16
  return a
17
17
 
18
+ def ScrollBar(root, widget, side="right", fill="y"):
19
+ a = widget
20
+ scrollbar = tk.Scrollbar(root, command=a.yview)
21
+ scrollbar.pack(side=side, fill=fill)
22
+ a.config(yscrollcommand=scrollbar.set)
23
+
18
24
  def Label(parent, text="Default Text", font="Helvetica", size=12, color="black"):
19
25
  label = ttk.Label(parent, text=text, font = (font, size), foreground = color); label.pack();
20
26
  return label
@@ -32,10 +38,11 @@ def OpenFile(title):
32
38
  def ChexBox(parent, text = 'check me', variable=None, command = None):
33
39
  checkbutton = ttk.Checkbutton(parent, text=text, variable=variable, command=command)
34
40
 
41
+ def CTBox(parent, width = 120, height = 25, corner_radius=10, fg = "red", text = "Custom Button"):
42
+ CTkEntry(master=parent, width=width, height=height, corner_radius=corner_radius, fg = fg, text = text )
35
43
 
36
-
37
- def add(widget, padx = 10, pady = 10):
38
- widget.pack(padx = padx, pady = pady)
44
+ def add(widget, padx = 10, pady = 10, side="left", fill = "y", expand=True):
45
+ widget.pack(padx = padx, pady = pady, side=side, fill=fill, expand=expand)
39
46
 
40
47
  def BGImage(parent, bg_image_path = '', width=400 , height=300):
41
48
  # Load and set the background image
FunctionGUI/__init__.py CHANGED
@@ -13,7 +13,7 @@ from .FunctionGUI import (
13
13
  Run,
14
14
  BulleanVar,
15
15
  ChexBox,
16
- Add,
16
+ add,
17
17
  Design
18
18
 
19
19
  )
@@ -0,0 +1,55 @@
1
+ Metadata-Version: 2.1
2
+ Name: FunctionGUI
3
+ Version: 0.5.0
4
+ Summary: A simple Tkinter GUI library with basic widgets and functionality.
5
+ Home-page: https://github.com/aa425/FunctionGUI
6
+ Author: Aaroh Charne
7
+ Author-email: aaroh.charne@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Natural Language :: English
14
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
+ Requires-Python: >=3.6
16
+ Description-Content-Type: text/markdown
17
+ Requires-Dist: Pillow
18
+ Requires-Dist: ttkbootstrap
19
+
20
+ ## Sentience
21
+
22
+ Sentience is a basic AI library made to simplify the usage of the genai library by providing basic functions for chat at a higher level.
23
+
24
+
25
+ ## Installation
26
+
27
+ To install Sentience, you can simply use:
28
+
29
+ ```bash
30
+ pip install Sentience
31
+ ```
32
+
33
+ ## Usage
34
+ ```python
35
+ #Set your api (does not return in a variable)
36
+ API(your_api_key)
37
+ #Make the model, settings can be altered (returns the model in a variable), code example provides default settings
38
+ model = Model(model = "gemini-1.5-pro", temperature = 1, top_p = 0.95, top_k = 40, max_output_tokens = 8192)
39
+
40
+ #Uses model created above to make a chat (returns chat in a variable)
41
+ chat = Chat(model)
42
+
43
+ #Sends a message to your chat, replace chat with the varible you have named your chat
44
+ response = Send(chat, "Hello, how are you?")
45
+
46
+ print(response)
47
+ ```
48
+
49
+ # Bugs
50
+
51
+ If you are finding bugs in the code, please report them to me @aaroh.charne@gmail.com.
52
+ Please include a snippet of your code as well the problem. Thank You
53
+
54
+
55
+ ```
@@ -0,0 +1,6 @@
1
+ FunctionGUI/FunctionGUI.py,sha256=n-RXxNqAMd882Kupc0JbHDPEQHhyeba1_KkhlcZz9LI,3915
2
+ FunctionGUI/__init__.py,sha256=2ISosIKxMmzDZfv21bQ9l3GC22sp0Be2Ws3Sv-5LEK4,227
3
+ FunctionGUI-0.5.0.dist-info/METADATA,sha256=X1-fsYIvyZlJHiGwLa_9ktCC2ytm2uosFV_P78nDqQM,1724
4
+ FunctionGUI-0.5.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
5
+ FunctionGUI-0.5.0.dist-info/top_level.txt,sha256=_gisKDTO1FqIkJYqH6X1ZrcA0ZvQdKnA_JhABqCSUFo,12
6
+ FunctionGUI-0.5.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (71.1.0)
2
+ Generator: bdist_wheel (0.38.4)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,101 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: FunctionGUI
3
- Version: 0.3.0
4
- Summary: A simple Tkinter GUI library with basic widgets and functionality.
5
- Home-page: https://github.com/aa425/FunctionGUI
6
- Author: Aaroh Charne
7
- Author-email: aaroh.charne@gmail.com
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- Classifier: Development Status :: 3 - Alpha
12
- Classifier: Intended Audience :: Developers
13
- Classifier: Natural Language :: English
14
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
- Requires-Python: >=3.6
16
- Description-Content-Type: text/markdown
17
- Requires-Dist: Pillow
18
- Requires-Dist: ttkbootstrap
19
-
20
- # FunctionGUI
21
-
22
- FunctionGUI is a simple GUI library built using tkinter, designed to help you quickly create graphical user interfaces with ease.
23
-
24
- ## Installation
25
-
26
- To install FunctionGUI, you can simply use pip:
27
-
28
- ```bash
29
- pip install functiongui
30
- ```
31
-
32
- ```python
33
- # FunctionGUI
34
-
35
- FunctionGUI is a simple GUI library built using tkinter, designed to help you quickly create graphical user interfaces with ease. This library can currently complete the most basic tasks of Tkinter and does not contain much functionality, but will have more features in the future.
36
-
37
- ## Installation
38
-
39
- To install FunctionGUI, you can simply use pip:
40
-
41
- ```bash
42
- pip install functiongui
43
- ```
44
- ## Usage
45
- ```python
46
- import functiongui as fg
47
-
48
- # Create a window
49
- root = fg.Window()
50
-
51
- # Set the title of the window
52
- fg.Title(root, "New Window")
53
-
54
- # Create a custom font
55
- custom_font = fg.Font(name='Helvetica', size=16, weight='bold')
56
-
57
- # Create a label with the custom font
58
- label = fg.Label(root, text="Hello, World!", font='Helvetica', size=16, color="blue")
59
-
60
-
61
- # Add/pack a widget
62
- fg.add(widget, padx = 10, pady = 10)
63
-
64
- # Create and p
65
- ChexBox(parent, text = 'check me', variable=None, command =lambda: print("Check Box")):
66
-
67
-
68
- # Create an entry field
69
- entry = fg.Entry(root, width=20, font="Helvetica", size=12, bg="white", fg="black", padx = 10, pady = 10)
70
-
71
- # Retrieve and print the text from the entry field on button click
72
- def on_button_click():
73
- text = fg.GetEntry(entry)
74
- print(text.get())
75
-
76
- # Change the design of the app
77
- style = fg.Design(theme)
78
-
79
- # Boolean Variable (Use in checkboxes)
80
- Boolean_Variable = BulleanVar()
81
-
82
- # Add a Button
83
- button = fg.Button(root, text="Print Entry", command=on_button_click)
84
-
85
- # Set a background image
86
- fg.BGImage(root, bg_image_path='path_to_image.jpg', width = 300, height = 600)
87
-
88
- # Place a widget on a specific coordinate on the window
89
- Place(button, 60, 100)
90
-
91
- # Run the main loop
92
- fg.Run(root)
93
- ```
94
-
95
- ## Bugs
96
-
97
- If you are finding bugs in the code, please report them to me @aaroh.charne@gmail.com.
98
- Please include a snippet of your code as well the problem. Thank You
99
-
100
- ## Please check out my other Library Calclab @https://pypi.org/project/Calclab/
101
- ```
@@ -1,6 +0,0 @@
1
- FunctionGUI/FunctionGUI.py,sha256=nSK7EN07HGH_0mCvt-jtwXk8VPE8W6LS-B5VHkt8Cbc,3422
2
- FunctionGUI/__init__.py,sha256=AWuhfVlsrkV3xq9ZCl1gfVqBoRqqzrNr2UwuRUJtnGA,227
3
- FunctionGUI-0.3.0.dist-info/METADATA,sha256=6sHY8u4ocp0sS3IALLJ7qAwerrZLmBJvBUBdnoHiWYs,2942
4
- FunctionGUI-0.3.0.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
5
- FunctionGUI-0.3.0.dist-info/top_level.txt,sha256=_gisKDTO1FqIkJYqH6X1ZrcA0ZvQdKnA_JhABqCSUFo,12
6
- FunctionGUI-0.3.0.dist-info/RECORD,,