Files
PyUIBuilder/src/frameworks/tkinter/sidebarWidgets.js
2025-03-11 07:23:17 +05:30

131 lines
3.6 KiB
JavaScript

import MainWindow from "./widgets/mainWindow"
import TopLevel from "./widgets/toplevel"
import Frame from "./widgets/frame"
import Label from "./widgets/label"
import Button from "./widgets/button"
import OptionMenu from "./widgets/optionMenu"
import Slider from "./widgets/slider"
import { CheckBox, RadioButton } from "./widgets/checkButton"
import { Input, Text } from "./widgets/input"
import SpinBox from "./widgets/spinBox"
import MainWindowImage from "./assets/widgets/main/mainwindow.png"
import TopLevelImage from "./assets/widgets/main/Toplevel.png"
import FrameImage from "./assets/widgets/main/frame2.png"
import LabelImage from "./assets/widgets/main/label.png"
import ButtonImage from "./assets/widgets/main/button.png"
import InputImage from "./assets/widgets/main/input.png"
import TextAreaImage from "./assets/widgets/main/textarea.png"
import SliderImage from "./assets/widgets/main/slider.png"
import DropDownImage from "./assets/widgets/main/dropdown.png"
import CheckButtonImage from "./assets/widgets/main/check.png"
import RadioButtonImage from "./assets/widgets/main/radio.png"
import SpinBoxImage from "./assets/widgets/main/spinbox.png"
const TkinterWidgets = [
{
name: "Main window",
img: MainWindowImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: MainWindow
},
{
name: "Top Level",
img: TopLevelImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: TopLevel
},
{
name: "Frame",
img: FrameImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: Frame
},
{
name: "Label",
img: LabelImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: Label
},
{
name: "Button",
img: ButtonImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: Button
},
{
name: "Entry",
img: InputImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: Input
},
{
name: "Text",
img: TextAreaImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: Text
},
{
name: "CheckBox",
img: CheckButtonImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: CheckBox
},
{
name: "Radio button",
img: RadioButtonImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: RadioButton
},
{
name: "Scale",
img: SliderImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: Slider
},
{
name: "Option Menu",
img: DropDownImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: OptionMenu
},
{
name: "Spinbox",
img: SpinBoxImage,
link: "https://github.com/PaulleDemon/PyUIBuilder",
widgetClass: SpinBox
},
]
export default TkinterWidgets
/**
* 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()
}
*/