mirror of
https://github.com/lvgl/lvgl.git
synced 2026-09-27 18:34:13 +08:00
arch(obj): replace lv_obj_flag... with dedicated API for each flag (#10316)
This commit is contained in:
@@ -32,6 +32,11 @@ class LVMsgbox(LVObject):
|
||||
def title(self):
|
||||
return ptr_or_none(self._wv.safe_field("title"))
|
||||
|
||||
@property
|
||||
def auto_parent(self):
|
||||
"""Mark that the parent was automatically created"""
|
||||
return int(self._wv.safe_field("auto_parent", 0))
|
||||
|
||||
def snapshot(self, include_children=False, include_styles=False):
|
||||
"""Snapshot with widget-specific fields in widget_data."""
|
||||
s = super().snapshot(include_children=include_children, include_styles=include_styles)
|
||||
@@ -40,5 +45,6 @@ class LVMsgbox(LVObject):
|
||||
d["content"] = self.content
|
||||
d["footer"] = self.footer
|
||||
d["title"] = self.title
|
||||
d["auto_parent"] = self.auto_parent
|
||||
s['widget_data'] = d
|
||||
return s
|
||||
|
||||
@@ -478,7 +478,8 @@
|
||||
"header": "pointer",
|
||||
"content": "pointer",
|
||||
"footer": "pointer",
|
||||
"title": "pointer"
|
||||
"title": "pointer",
|
||||
"auto_parent": "bool"
|
||||
}
|
||||
},
|
||||
"summary_tpl": "",
|
||||
|
||||
Reference in New Issue
Block a user