FunctionGUI 0.4.0__tar.gz → 0.6.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.
- {functiongui-0.4.0 → FunctionGUI-0.6.0}/FunctionGUI/FunctionGUI.py +10 -3
- {functiongui-0.4.0 → FunctionGUI-0.6.0}/FunctionGUI/__init__.py +2 -1
- FunctionGUI-0.6.0/FunctionGUI.egg-info/PKG-INFO +53 -0
- FunctionGUI-0.6.0/PKG-INFO +53 -0
- FunctionGUI-0.6.0/README.md +36 -0
- {functiongui-0.4.0 → FunctionGUI-0.6.0}/setup.py +1 -1
- functiongui-0.4.0/FunctionGUI.egg-info/PKG-INFO +0 -101
- functiongui-0.4.0/PKG-INFO +0 -101
- functiongui-0.4.0/README.md +0 -82
- {functiongui-0.4.0 → FunctionGUI-0.6.0}/FunctionGUI.egg-info/SOURCES.txt +0 -0
- {functiongui-0.4.0 → FunctionGUI-0.6.0}/FunctionGUI.egg-info/dependency_links.txt +0 -0
- {functiongui-0.4.0 → FunctionGUI-0.6.0}/FunctionGUI.egg-info/requires.txt +0 -0
- {functiongui-0.4.0 → FunctionGUI-0.6.0}/FunctionGUI.egg-info/top_level.txt +0 -0
- {functiongui-0.4.0 → FunctionGUI-0.6.0}/setup.cfg +0 -0
@@ -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
|
-
|
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
|
@@ -0,0 +1,53 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: FunctionGUI
|
3
|
+
Version: 0.6.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
|
+
|
18
|
+
## Sentience
|
19
|
+
|
20
|
+
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.
|
21
|
+
|
22
|
+
|
23
|
+
## Installation
|
24
|
+
|
25
|
+
To install Sentience, you can simply use:
|
26
|
+
|
27
|
+
```bash
|
28
|
+
pip install Sentience
|
29
|
+
```
|
30
|
+
|
31
|
+
## Usage
|
32
|
+
```python
|
33
|
+
#Set your api (does not return in a variable)
|
34
|
+
API(your_api_key)
|
35
|
+
#Make the model, settings can be altered (returns the model in a variable), code example provides default settings
|
36
|
+
model = Model(model = "gemini-1.5-pro", temperature = 1, top_p = 0.95, top_k = 40, max_output_tokens = 8192)
|
37
|
+
|
38
|
+
#Uses model created above to make a chat (returns chat in a variable)
|
39
|
+
chat = Chat(model)
|
40
|
+
|
41
|
+
#Sends a message to your chat, replace chat with the varible you have named your chat
|
42
|
+
response = Send(chat, "Hello, how are you?")
|
43
|
+
|
44
|
+
print(response)
|
45
|
+
```
|
46
|
+
|
47
|
+
# Bugs
|
48
|
+
|
49
|
+
If you are finding bugs in the code, please report them to me @aaroh.charne@gmail.com.
|
50
|
+
Please include a snippet of your code as well the problem. Thank You
|
51
|
+
|
52
|
+
|
53
|
+
```
|
@@ -0,0 +1,53 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: FunctionGUI
|
3
|
+
Version: 0.6.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
|
+
|
18
|
+
## Sentience
|
19
|
+
|
20
|
+
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.
|
21
|
+
|
22
|
+
|
23
|
+
## Installation
|
24
|
+
|
25
|
+
To install Sentience, you can simply use:
|
26
|
+
|
27
|
+
```bash
|
28
|
+
pip install Sentience
|
29
|
+
```
|
30
|
+
|
31
|
+
## Usage
|
32
|
+
```python
|
33
|
+
#Set your api (does not return in a variable)
|
34
|
+
API(your_api_key)
|
35
|
+
#Make the model, settings can be altered (returns the model in a variable), code example provides default settings
|
36
|
+
model = Model(model = "gemini-1.5-pro", temperature = 1, top_p = 0.95, top_k = 40, max_output_tokens = 8192)
|
37
|
+
|
38
|
+
#Uses model created above to make a chat (returns chat in a variable)
|
39
|
+
chat = Chat(model)
|
40
|
+
|
41
|
+
#Sends a message to your chat, replace chat with the varible you have named your chat
|
42
|
+
response = Send(chat, "Hello, how are you?")
|
43
|
+
|
44
|
+
print(response)
|
45
|
+
```
|
46
|
+
|
47
|
+
# Bugs
|
48
|
+
|
49
|
+
If you are finding bugs in the code, please report them to me @aaroh.charne@gmail.com.
|
50
|
+
Please include a snippet of your code as well the problem. Thank You
|
51
|
+
|
52
|
+
|
53
|
+
```
|
@@ -0,0 +1,36 @@
|
|
1
|
+
## Sentience
|
2
|
+
|
3
|
+
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.
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
To install Sentience, you can simply use:
|
9
|
+
|
10
|
+
```bash
|
11
|
+
pip install Sentience
|
12
|
+
```
|
13
|
+
|
14
|
+
## Usage
|
15
|
+
```python
|
16
|
+
#Set your api (does not return in a variable)
|
17
|
+
API(your_api_key)
|
18
|
+
#Make the model, settings can be altered (returns the model in a variable), code example provides default settings
|
19
|
+
model = Model(model = "gemini-1.5-pro", temperature = 1, top_p = 0.95, top_k = 40, max_output_tokens = 8192)
|
20
|
+
|
21
|
+
#Uses model created above to make a chat (returns chat in a variable)
|
22
|
+
chat = Chat(model)
|
23
|
+
|
24
|
+
#Sends a message to your chat, replace chat with the varible you have named your chat
|
25
|
+
response = Send(chat, "Hello, how are you?")
|
26
|
+
|
27
|
+
print(response)
|
28
|
+
```
|
29
|
+
|
30
|
+
# Bugs
|
31
|
+
|
32
|
+
If you are finding bugs in the code, please report them to me @aaroh.charne@gmail.com.
|
33
|
+
Please include a snippet of your code as well the problem. Thank You
|
34
|
+
|
35
|
+
|
36
|
+
```
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='FunctionGUI', # Replace with your library name
|
5
|
-
version='0.
|
5
|
+
version='0.6.0', # Start with an initial version
|
6
6
|
description='A simple Tkinter GUI library with basic widgets and functionality.',
|
7
7
|
long_description=open('README.md').read(), # Make sure you have a README.md file
|
8
8
|
long_description_content_type='text/markdown',
|
@@ -1,101 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: FunctionGUI
|
3
|
-
Version: 0.4.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
|
-
```
|
functiongui-0.4.0/PKG-INFO
DELETED
@@ -1,101 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: FunctionGUI
|
3
|
-
Version: 0.4.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
|
-
```
|
functiongui-0.4.0/README.md
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
# FunctionGUI
|
2
|
-
|
3
|
-
FunctionGUI is a simple GUI library built using tkinter, designed to help you quickly create graphical user interfaces with ease.
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
To install FunctionGUI, you can simply use pip:
|
8
|
-
|
9
|
-
```bash
|
10
|
-
pip install functiongui
|
11
|
-
```
|
12
|
-
|
13
|
-
```python
|
14
|
-
# FunctionGUI
|
15
|
-
|
16
|
-
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.
|
17
|
-
|
18
|
-
## Installation
|
19
|
-
|
20
|
-
To install FunctionGUI, you can simply use pip:
|
21
|
-
|
22
|
-
```bash
|
23
|
-
pip install functiongui
|
24
|
-
```
|
25
|
-
## Usage
|
26
|
-
```python
|
27
|
-
import functiongui as fg
|
28
|
-
|
29
|
-
# Create a window
|
30
|
-
root = fg.Window()
|
31
|
-
|
32
|
-
# Set the title of the window
|
33
|
-
fg.Title(root, "New Window")
|
34
|
-
|
35
|
-
# Create a custom font
|
36
|
-
custom_font = fg.Font(name='Helvetica', size=16, weight='bold')
|
37
|
-
|
38
|
-
# Create a label with the custom font
|
39
|
-
label = fg.Label(root, text="Hello, World!", font='Helvetica', size=16, color="blue")
|
40
|
-
|
41
|
-
|
42
|
-
# Add/pack a widget
|
43
|
-
fg.add(widget, padx = 10, pady = 10)
|
44
|
-
|
45
|
-
# Create and p
|
46
|
-
ChexBox(parent, text = 'check me', variable=None, command =lambda: print("Check Box")):
|
47
|
-
|
48
|
-
|
49
|
-
# Create an entry field
|
50
|
-
entry = fg.Entry(root, width=20, font="Helvetica", size=12, bg="white", fg="black", padx = 10, pady = 10)
|
51
|
-
|
52
|
-
# Retrieve and print the text from the entry field on button click
|
53
|
-
def on_button_click():
|
54
|
-
text = fg.GetEntry(entry)
|
55
|
-
print(text.get())
|
56
|
-
|
57
|
-
# Change the design of the app
|
58
|
-
style = fg.Design(theme)
|
59
|
-
|
60
|
-
# Boolean Variable (Use in checkboxes)
|
61
|
-
Boolean_Variable = BulleanVar()
|
62
|
-
|
63
|
-
# Add a Button
|
64
|
-
button = fg.Button(root, text="Print Entry", command=on_button_click)
|
65
|
-
|
66
|
-
# Set a background image
|
67
|
-
fg.BGImage(root, bg_image_path='path_to_image.jpg', width = 300, height = 600)
|
68
|
-
|
69
|
-
# Place a widget on a specific coordinate on the window
|
70
|
-
Place(button, 60, 100)
|
71
|
-
|
72
|
-
# Run the main loop
|
73
|
-
fg.Run(root)
|
74
|
-
```
|
75
|
-
|
76
|
-
## Bugs
|
77
|
-
|
78
|
-
If you are finding bugs in the code, please report them to me @aaroh.charne@gmail.com.
|
79
|
-
Please include a snippet of your code as well the problem. Thank You
|
80
|
-
|
81
|
-
## Please check out my other Library Calclab @https://pypi.org/project/Calclab/
|
82
|
-
```
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|