adding more widget attributes

This commit is contained in:
paul
2024-09-27 16:04:03 +05:30
parent 7b4446d9ee
commit 77b1c5a0f0
16 changed files with 251 additions and 58 deletions

View File

@@ -1,5 +1,5 @@
import Widget from "../../../canvas/widgets/base"
import TkinterBase from "./base"
import {TkinterBase} from "./base"
class Frame extends TkinterBase{
@@ -12,6 +12,17 @@ class Frame extends TkinterBase{
this.droppableTags = {
exclude: ["image", "video", "media", "toplevel", "main_window"]
}
this.state = {
...this.state,
widgetName: "Frame"
}
}
componentDidMount(){
super.componentDidMount()
this.setAttrValue("styling.backgroundColor", "#EDECEC")
}
generateCode(variableName, parent){
@@ -25,11 +36,7 @@ class Frame extends TkinterBase{
]
}
componentDidMount(){
super.componentDidMount()
this.setAttrValue("styling.backgroundColor", "#EDECEC")
this.setWidgetName("frame")
}
renderContent(){
// console.log("widget styling: ", this.state.widgetInnerStyling)