feat: added basic tkinter widgets

This commit is contained in:
paul
2024-09-22 22:24:35 +05:30
parent 65d7aec1a2
commit 1b9e049d91
9 changed files with 704 additions and 169 deletions

View File

@@ -2,7 +2,12 @@
import Widget from "../../canvas/widgets/base"
import ButtonWidget from "./assets/widgets/button.png"
import Button from "./widgets/button"
import Frame from "./widgets/frame"
import Input from "./widgets/input"
import Label from "./widgets/label"
import MainWindow from "./widgets/mainWindow"
import TopLevel from "./widgets/toplevel"
const TkinterSidebar = [
@@ -16,25 +21,31 @@ const TkinterSidebar = [
name: "Top Level",
img: ButtonWidget,
link: "https://github.com",
widgetClass: Widget
widgetClass: TopLevel
},
{
name: "Frame",
img: ButtonWidget,
link: "https://github.com",
widgetClass: Widget
widgetClass: Frame
},
{
name: "Label",
img: ButtonWidget,
link: "https://github.com",
widgetClass: Label
},
{
name: "Button",
img: ButtonWidget,
link: "https://github.com",
widgetClass: Widget
widgetClass: Button
},
{
name: "Input",
img: ButtonWidget,
link: "https://github.com",
widgetClass: Widget
widgetClass: Input
},
]