feat: added checkbox and other widgets for tkinter
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
import Widget from "../../canvas/widgets/base"
|
||||
|
||||
import ButtonWidget from "./assets/widgets/button.png"
|
||||
import { CheckBox } from "./widgets/ checkButton"
|
||||
import Button from "./widgets/button"
|
||||
import Frame from "./widgets/frame"
|
||||
import Input from "./widgets/input"
|
||||
import { Input, Text } from "./widgets/input"
|
||||
import Label from "./widgets/label"
|
||||
import MainWindow from "./widgets/mainWindow"
|
||||
import TopLevel from "./widgets/toplevel"
|
||||
@@ -42,12 +43,50 @@ const TkinterSidebar = [
|
||||
widgetClass: Button
|
||||
},
|
||||
{
|
||||
name: "Input",
|
||||
name: "Entry",
|
||||
img: ButtonWidget,
|
||||
link: "https://github.com",
|
||||
widgetClass: Input
|
||||
},
|
||||
{
|
||||
name: "Text",
|
||||
img: ButtonWidget,
|
||||
link: "https://github.com",
|
||||
widgetClass: Text
|
||||
},
|
||||
{
|
||||
name: "CheckBox",
|
||||
img: ButtonWidget,
|
||||
link: "https://github.com",
|
||||
widgetClass: CheckBox
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
export default TkinterSidebar
|
||||
export default TkinterSidebar
|
||||
|
||||
|
||||
/**
|
||||
* widgets = {
|
||||
"Tk": set(),
|
||||
"Label": set(),
|
||||
"Button": set(),
|
||||
"Entry": set(),
|
||||
"CheckButton": set(),
|
||||
"RadioButton": set(),
|
||||
"Scale": set(),
|
||||
"ListBox": set(),
|
||||
"Frame": set(),
|
||||
"LabelFrame": set(),
|
||||
"PanedWindow": set(),
|
||||
"SpinBox": set(),
|
||||
"OptionMenu": set(),
|
||||
"Canvas": set(),
|
||||
"TopLevel": set(),
|
||||
"Message": set(),
|
||||
"Menu": set(),
|
||||
"MenuButton": set(),
|
||||
"ScrollBar": set(),
|
||||
"Text": set()
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user