/lvgl-3.4.0/examples/anim/ |
D | lv_example_anim_timeline_1.py | 3 def __init__(self): argument 4 self.obj_width = 120 5 self.obj_height = 150 10 self.par = lv.scr_act() 11 self.par.set_flex_flow(lv.FLEX_FLOW.ROW) 12 … self.par.set_flex_align(lv.FLEX_ALIGN.SPACE_AROUND, lv.FLEX_ALIGN.CENTER, lv.FLEX_ALIGN.CENTER) 14 self.btn_run = lv.btn(self.par) 15 self.btn_run.add_event_cb(self.btn_run_event_handler, lv.EVENT.VALUE_CHANGED, None) 16 self.btn_run.add_flag(lv.obj.FLAG.IGNORE_LAYOUT) 17 self.btn_run.add_flag(lv.obj.FLAG.CHECKABLE) [all …]
|
D | lv_example_anim_3.py | 15 def __init__(self): argument 20 self.p1 = 0 21 self.p2 = 0 22 self.cont = lv.obj(lv.scr_act()) 23 self.cont.set_style_pad_all(2, lv.PART.MAIN) 24 self.cont.set_style_pad_column(10, lv.PART.MAIN) 25 self.cont.set_style_pad_row(10, lv.PART.MAIN) 26 self.cont.set_grid_dsc_array(col_dsc, row_dsc) 27 self.cont.set_size(320, 240) 28 self.cont.center() [all …]
|
/lvgl-3.4.0/examples/styles/ |
D | lv_example_style_14.py | 6 def __init__(self): argument 9 self.style_btn = lv.style_t() 10 self.style_btn.init() 11 self.style_btn.set_bg_color(lv.palette_main(lv.PALETTE.GREEN)) 12 self.style_btn.set_border_color(lv.palette_darken(lv.PALETTE.GREEN, 3)) 13 self.style_btn.set_border_width(3) 18 self.set_parent(th_act) 23 def __init__(self): argument 34 self.new_theme_init_and_set() 42 def new_theme_apply_cb(self, th, obj): argument [all …]
|
/lvgl-3.4.0/examples/widgets/chart/ |
D | lv_example_chart_6.py | 3 def __init__(self): argument 4 self.last_id = -1 16 chart.add_event_cb(self.event_cb, lv.EVENT.ALL, None) 19 … self.cursor = chart.add_cursor(lv.palette_main(lv.PALETTE.BLUE), lv.DIR.LEFT | lv.DIR.BOTTOM) 21 self.ser = chart.add_series(lv.palette_main(lv.PALETTE.RED), lv.chart.AXIS.PRIMARY_Y) 23 self.ser_p = [] 25 self.ser_p.append(lv.rand(10,90)) 26 self.ser.y_points = self.ser_p 37 def event_cb(self,e): argument 44 self.last_id = chart.get_pressed_point() [all …]
|
D | lv_example_chart_8.py | 7 def __init__(self): argument 8 self.obj = None 9 self.series_list = [None, None, None]
|
/lvgl-3.4.0/docs/_ext/ |
D | lv_example.py | 22 def get_example_code_path(self, example_path, language): argument 24 def human_language_name(self, language): argument 31 def github_path(self, example_path, language): argument 32 env = self.state.document.settings.env 34 def embed_code(self, example_file, example_path, language, buttons={}): argument 51 def run(self): argument 52 example_path = self.arguments[0] 54 excluded_languages = self.options.get('excluded_languages', []) 57 env = self.state.document.settings.env 61 c_path = self.get_example_code_path(example_path, 'c') [all …]
|
/lvgl-3.4.0/examples/widgets/roller/ |
D | lv_example_roller_3.py | 6 def __init__(self): argument 7 self.mask_top_id = -1 8 self.mask_bottom_id = -1 54 roller1.add_event_cb(self.mask_event_cb, lv.EVENT.ALL, None) 56 def mask_event_cb(self,e): argument 81 self.mask_top_id = lv.draw_mask_add(fade_mask_top,None) 88 self.mask_bottom_id = lv.draw_mask_add(fade_mask_bottom, None) 91 fade_mask_top = lv.draw_mask_remove_id(self.mask_top_id) 92 fade_mask_bottom = lv.draw_mask_remove_id(self.mask_bottom_id) 94 lv.draw_mask_remove_id(self.mask_top_id) [all …]
|
/lvgl-3.4.0/examples/widgets/arc/ |
D | lv_example_arc_2.py | 5 def __init__(self): argument 6 self.a = 270 8 def arc_loader_cb(self,tim,arc): argument 10 self.a += 5 12 arc.set_end_angle(self.a) 14 if self.a >= 270 + 360:
|
/lvgl-3.4.0/examples/event/ |
D | lv_example_event_1.py | 2 def __init__(self): argument 3 self.cnt = 1 11 btn.add_event_cb(self.event_cb, lv.EVENT.CLICKED, None) 17 def event_cb(self,e): argument 22 label.set_text(str(self.cnt)) 23 self.cnt += 1
|
/lvgl-3.4.0/examples/get_started/ |
D | lv_example_get_started_1.py | 2 def __init__(self): argument 3 self.cnt = 0 12 btn.add_event_cb(self.btn_event_cb, lv.EVENT.ALL, None) # Assign a callback to the button 17 def btn_event_cb(self,evt): argument 21 self.cnt += 1 25 label.set_text("Button: " + str(self.cnt))
|
/lvgl-3.4.0/examples/scroll/ |
D | lv_example_scroll_3.py | 2 def __init__(self): argument 3 self.btn_cnt = 1 19 float_btn.add_event_cb(lambda evt: self.float_btn_event_cb(evt,list), lv.EVENT.ALL, None) 24 def float_btn_event_cb(self,e,list): argument 29 list_btn = list.add_btn(lv.SYMBOL.AUDIO, "Track {:d}".format(self.btn_cnt)) 30 self.btn_cnt += 1
|
/lvgl-3.4.0/docs/overview/ |
D | scroll.md | 148 In short, self size establishes the size of an object's content. To understand it better take the e… 149 … height. So the total height of the content is 500 px. In other words the "self height" is 500 px. 150 If the user sets only 200 px height for the table LVGL will see that the self size is larger and ma… 152 This means not only the children can make an object scrollable but a larger self size will too. 154 LVGL uses the `LV_EVENT_GET_SELF_SIZE` event to get the self size of an object. Here is an example … 161 p->x = 200; //Set or calculate the self width 165 p->y = 50; //Set or calculate the self height
|
/lvgl-3.4.0/docs/ |
D | CHANGELOG.md | 568 - fix(table) fix an off-by-one issue in self size calculation [`ea2545a`](https://github.com/lvgl/l…
|