Skip to content

Commit

Permalink
cleanup .flet()
Browse files Browse the repository at this point in the history
  • Loading branch information
buganini committed May 22, 2023
1 parent 9662f03 commit a3d8730
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions PUI/flet/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ def removeChild(self, idx, child):
self.ui.controls.remove(find_flet_outer(child))
self.ui.update()

def flet(self, alignment=None, vertical_alignment=None):
if not alignment is None:
self.flet_params["alignment"] = alignment
if not vertical_alignment is None:
self.flet_params["vertical_alignment"] = vertical_alignment
return self

class FColumn(FBase):
def update(self, prev):
if prev and hasattr(prev, "ui"):
Expand All @@ -46,16 +39,6 @@ def removeChild(self, idx, child):
self.ui.controls.remove(find_flet_outer(child))
self.ui.update()

def flet(self, alignment=None, horizontal_alignment=None, **kwargs):
if not alignment is None:
self.flet_params["alignment"] = alignment
if not horizontal_alignment is None:
self.flet_params["horizontal_alignment"] = horizontal_alignment
for k,v in kwargs.items():
self.flet_params[k] = v
return self


class FSpacer(FBase):
def update(self, prev):
if prev and hasattr(prev, "ui"):
Expand Down

0 comments on commit a3d8730

Please sign in to comment.