corrected grid weight and grid config position in toolbar
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
export const Tkinter_TO_WEB_CURSOR_MAPPING = {
|
||||
|
||||
"": "",
|
||||
"arrow": "default",
|
||||
"circle": "wait",
|
||||
"clock": "wait",
|
||||
|
||||
@@ -890,6 +890,19 @@ export class TkinterBase extends Widget {
|
||||
}
|
||||
|
||||
|
||||
getToolbarAttrs(){
|
||||
const {layout, gridConfig, gridWeights, ...toolBarAttrs} = super.getToolbarAttrs()
|
||||
|
||||
// places layout at the end
|
||||
return ({
|
||||
id: this.__id,
|
||||
...toolBarAttrs,
|
||||
layout,
|
||||
gridConfig,
|
||||
gridWeights
|
||||
})
|
||||
}
|
||||
|
||||
serialize(){
|
||||
return ({
|
||||
...super.serialize(),
|
||||
|
||||
@@ -162,14 +162,17 @@ class Frame extends TkinterBase{
|
||||
}
|
||||
|
||||
getToolbarAttrs(){
|
||||
const {layout, ...toolBarAttrs} = super.getToolbarAttrs()
|
||||
const {layout, gridConfig, gridWeights, ...toolBarAttrs} = super.getToolbarAttrs()
|
||||
|
||||
// places layout at the end
|
||||
return ({
|
||||
id: this.__id,
|
||||
...toolBarAttrs,
|
||||
padding: this.state.attrs.padding,
|
||||
margin: this.state.attrs.margin,
|
||||
layout
|
||||
layout,
|
||||
gridConfig,
|
||||
gridWeights
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user