feat: added sidebar widget drop
fix: corrected color picker value, drag and drop
This commit is contained in:
BIN
src/frameworks/tkinter/assets/widgets/button.png
Normal file
BIN
src/frameworks/tkinter/assets/widgets/button.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
41
src/frameworks/tkinter/sidebarWidgets.js
Normal file
41
src/frameworks/tkinter/sidebarWidgets.js
Normal file
@@ -0,0 +1,41 @@
|
||||
|
||||
import Widget from "../../canvas/widgets/base"
|
||||
|
||||
import ButtonWidget from "./assets/widgets/button.png"
|
||||
|
||||
|
||||
const TkinterSidebar = [
|
||||
{
|
||||
name: "Main window",
|
||||
img: ButtonWidget,
|
||||
link: "https://github.com",
|
||||
widgetClass: Widget
|
||||
},
|
||||
{
|
||||
name: "Top Level",
|
||||
img: ButtonWidget,
|
||||
link: "https://github.com",
|
||||
widgetClass: Widget
|
||||
},
|
||||
{
|
||||
name: "Frame",
|
||||
img: ButtonWidget,
|
||||
link: "https://github.com",
|
||||
widgetClass: Widget
|
||||
},
|
||||
{
|
||||
name: "Button",
|
||||
img: ButtonWidget,
|
||||
link: "https://github.com",
|
||||
widgetClass: Widget
|
||||
},
|
||||
{
|
||||
name: "Input",
|
||||
img: ButtonWidget,
|
||||
link: "https://github.com",
|
||||
widgetClass: Widget
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
export default TkinterSidebar
|
||||
Reference in New Issue
Block a user