Files
PyUIBuilder/src/frameworks/tkinter/sidebarWidgets.js

131 lines
3.3 KiB
JavaScript
Raw Normal View History

2024-09-24 11:50:50 +05:30
import MainWindow from "./widgets/mainWindow"
import TopLevel from "./widgets/toplevel"
2024-09-22 22:24:35 +05:30
import Frame from "./widgets/frame"
import Label from "./widgets/label"
2024-09-24 11:50:50 +05:30
import Button from "./widgets/button"
2024-09-23 19:31:30 +05:30
import OptionMenu from "./widgets/optionMenu"
import Slider from "./widgets/slider"
2024-09-24 11:50:50 +05:30
import { CheckBox, RadioButton } from "./widgets/ checkButton"
import { Input, Text } from "./widgets/input"
2024-09-23 23:13:36 +05:30
import SpinBox from "./widgets/spinBox"
2024-09-24 11:50:50 +05:30
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"
2024-09-23 22:49:44 +05:30
2024-09-24 11:50:50 +05:30
const TkinterWidgets = [
{
name: "Main window",
2024-09-23 22:49:44 +05:30
img: MainWindowImage,
link: "https://github.com",
widgetClass: MainWindow
},
{
name: "Top Level",
2024-09-23 22:49:44 +05:30
img: TopLevelImage,
link: "https://github.com",
2024-09-22 22:24:35 +05:30
widgetClass: TopLevel
},
{
name: "Frame",
2024-09-23 22:49:44 +05:30
img: FrameImage,
link: "https://github.com",
2024-09-22 22:24:35 +05:30
widgetClass: Frame
},
{
name: "Label",
2024-09-23 22:49:44 +05:30
img: LabelImage,
2024-09-22 22:24:35 +05:30
link: "https://github.com",
widgetClass: Label
},
{
name: "Button",
2024-09-23 22:49:44 +05:30
img: ButtonImage,
link: "https://github.com",
2024-09-22 22:24:35 +05:30
widgetClass: Button
},
{
name: "Entry",
2024-09-23 22:49:44 +05:30
img: InputImage,
link: "https://github.com",
2024-09-22 22:24:35 +05:30
widgetClass: Input
},
{
name: "Text",
2024-09-23 22:49:44 +05:30
img: TextAreaImage,
link: "https://github.com",
widgetClass: Text
},
{
name: "CheckBox",
2024-09-23 22:49:44 +05:30
img: CheckButtonImage,
link: "https://github.com",
widgetClass: CheckBox
},
{
name: "Radio button",
2024-09-23 22:49:44 +05:30
img: RadioButtonImage,
link: "https://github.com",
widgetClass: RadioButton
},
{
name: "Scale",
2024-09-23 22:49:44 +05:30
img: SliderImage,
link: "https://github.com",
widgetClass: Slider
},
2024-09-23 19:31:30 +05:30
{
name: "Option Menu",
2024-09-23 22:49:44 +05:30
img: DropDownImage,
2024-09-23 19:31:30 +05:30
link: "https://github.com",
widgetClass: OptionMenu
},
2024-09-23 23:13:36 +05:30
{
name: "Spinbox",
img: SpinBoxImage,
link: "https://github.com",
widgetClass: SpinBox
},
]
2024-09-24 11:50:50 +05:30
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()
}
*/