vibeUI 1.0.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.
vibeUI/__init__.py ADDED
@@ -0,0 +1 @@
1
+ from .vibe import *
vibeUI/vibe.py ADDED
@@ -0,0 +1,92 @@
1
+ """
2
+ Vibe – A beginner-friendly, professional Python GUI library
3
+ Author: [Your Name]
4
+ License: MIT
5
+ """
6
+
7
+ import tkinter as tk
8
+ from tkinter import simpledialog, messagebox
9
+
10
+ # =========================
11
+ # Window Class
12
+ # =========================
13
+ class Window:
14
+ def __init__(self, title="Vibe Window", size=(400, 300), theme="light"):
15
+ self.root = tk.Tk()
16
+ self.root.title(title)
17
+ self.root.geometry(f"{size[0]}x{size[1]}")
18
+ self.widgets = []
19
+ self.theme = theme
20
+ self._apply_theme()
21
+
22
+ def _apply_theme(self):
23
+ if self.theme == "dark":
24
+ self.root.configure(bg="#2e2e2e")
25
+ self.default_bg = "#2e2e2e"
26
+ self.default_fg = "#ffffff"
27
+ else:
28
+ self.root.configure(bg="#f0f0f0")
29
+ self.default_bg = "#f0f0f0"
30
+ self.default_fg = "#000000"
31
+
32
+ def add_label(self, text, pos=(0,0), font_size=12, fg=None, bg=None):
33
+ lbl = tk.Label(self.root, text=text, font=("Arial", font_size),
34
+ fg=fg or self.default_fg, bg=bg or self.default_bg)
35
+ lbl.place(x=pos[0], y=pos[1])
36
+ self.widgets.append(lbl)
37
+ return lbl
38
+
39
+ def add_button(self, text, pos=(0,0), command=None, font_size=12, fg=None, bg=None):
40
+ btn = tk.Button(self.root, text=text, command=command,
41
+ font=("Arial", font_size),
42
+ fg=fg or self.default_fg, bg=bg or "#c0c0c0")
43
+ btn.place(x=pos[0], y=pos[1])
44
+ self.widgets.append(btn)
45
+ return btn
46
+
47
+ def add_input(self, placeholder="", pos=(0,0), width=20, password=False):
48
+ var = tk.StringVar()
49
+ ent = tk.Entry(self.root, textvariable=var, width=width,
50
+ show="*" if password else "")
51
+ ent.insert(0, placeholder)
52
+ ent.place(x=pos[0], y=pos[1])
53
+ self.widgets.append(ent)
54
+ return var
55
+
56
+ def add_textarea(self, pos=(0,0), size=(30,5)):
57
+ txt = tk.Text(self.root, width=size[0], height=size[1])
58
+ txt.place(x=pos[0], y=pos[1])
59
+ self.widgets.append(txt)
60
+ return txt
61
+
62
+ def add_checkbox(self, text, pos=(0,0)):
63
+ var = tk.BooleanVar()
64
+ chk = tk.Checkbutton(self.root, text=text, variable=var,
65
+ bg=self.default_bg, fg=self.default_fg)
66
+ chk.place(x=pos[0], y=pos[1])
67
+ self.widgets.append(chk)
68
+ return var
69
+
70
+ def add_slider(self, text, pos=(0,0), min_val=0, max_val=100, orient="horizontal"):
71
+ lbl = self.add_label(text, pos=(pos[0], pos[1]-20))
72
+ var = tk.DoubleVar()
73
+ slider = tk.Scale(self.root, from_=min_val, to=max_val, orient=orient,
74
+ variable=var, bg=self.default_bg, fg=self.default_fg)
75
+ slider.place(x=pos[0], y=pos[1])
76
+ self.widgets.append(slider)
77
+ return var
78
+
79
+ def run(self):
80
+ self.root.mainloop()
81
+
82
+ # =========================
83
+ # Dialogs / Alerts
84
+ # =========================
85
+ def alert(message, title="Alert"):
86
+ messagebox.showinfo(title, message)
87
+
88
+ def confirm(message, title="Confirm"):
89
+ return messagebox.askyesno(title, message)
90
+
91
+ def prompt(message, title="Input"):
92
+ return simpledialog.askstring(title, message)
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.4
2
+ Name: vibeUI
3
+ Version: 1.0.0
4
+ Summary: Beginner-friendly Python GUI library built on Tkinter
5
+ Author-email: Samarth Chugh <iforgot3360@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Sam3360/vibeUI
8
+ Project-URL: Documentation, https://github.com/Sam3360/vibeUI
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Topic :: Software Development :: User Interfaces
13
+ Requires-Python: >=3.7
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Dynamic: license-file
17
+
18
+ # vibeUI
19
+
20
+ **vibeUI** is a beginner-friendly, professional Python GUI library built on top of Tkinter.
21
+ It allows you to create interactive, modern GUI applications with **minimal code**, making it perfect for learners, hobbyists, and educators.
22
+
23
+ ---
24
+
25
+ ## Features
26
+
27
+ - Create windows with custom titles, sizes, and themes (light/dark)
28
+ - Add labels, buttons, input fields, text areas
29
+ - Interactive widgets: checkboxes, sliders
30
+ - Popups: alerts, confirm dialogs, prompts
31
+ - Beginner-friendly, easy-to-use API
32
+ - Cross-platform: Windows, Mac, Linux
33
+
34
+ ---
35
+
36
+ ## Installation
37
+
38
+ Install directly from your local package (for development):
39
+
40
+ ```bash
41
+ pip install vibeUI
42
+ ```
43
+
44
+ ---
45
+
46
+ # Quick Start
47
+ import vibe as vi
48
+
49
+ ## Create a window
50
+ win = vi.Window("Vibe Demo", size=(500, 400), theme="light")
51
+
52
+ ## Add a label
53
+ win.add_label("Hello Vibe!", pos=(50, 50), font_size=20)
54
+
55
+ ## Add input field
56
+ name_input = win.add_input("Enter your name", pos=(50, 100))
57
+
58
+ ## Add button with callback
59
+ def greet():
60
+ vi.alert(f"Hello {name_input.get()}!", title="Greeting")
61
+
62
+ win.add_button("Greet Me", pos=(50, 150), command=greet)
63
+
64
+ ## Run the GUI
65
+ win.run()
66
+
67
+ ---
68
+
69
+ Advanced Usage
70
+
71
+ - Checkbox and slider widgets
72
+
73
+ - Customizable themes and colors
74
+
75
+ - Alerts, confirmations, and prompt dialogs
76
+
77
+ - Easy-to-extend for additional widgets
78
+
79
+ - Supports multiple windows and interactive callbacks
80
+
81
+ ---
82
+
83
+ # License
84
+
85
+ Vibe is released under the MIT License.
@@ -0,0 +1,7 @@
1
+ vibeUI/__init__.py,sha256=zq32JTXvuNICQ0q7ZzOS3lsj2YgE4v5mSA3oZ_-3uDY,21
2
+ vibeUI/vibe.py,sha256=9Ry6QQQSEQ_E53R1EkwCq-r0A7OSGWv6AJx1fsttLPc,3287
3
+ vibeui-1.0.0.dist-info/licenses/LICENSE,sha256=46D_pCKG-SEdKSt2w1JP4b-n3ZCIVKOJeDx7aA_CJKk,1095
4
+ vibeui-1.0.0.dist-info/METADATA,sha256=IEA89GtwRavVuNHh-6io_yiMPzzMkpIm_fUQvMrBOkA,2104
5
+ vibeui-1.0.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
6
+ vibeui-1.0.0.dist-info/top_level.txt,sha256=LwFOtLxH5Jam1bDqHwEPdEtYicUHOoSpTU3KzOBGyC8,7
7
+ vibeui-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.10.2)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Samarth Ankit Chugh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ vibeUI