Skip to content

Instantly share code, notes, and snippets.

@jglee72
Created September 6, 2018 22:52
Show Gist options
  • Save jglee72/537054a8e030838f86012a78cc565e67 to your computer and use it in GitHub Desktop.
Save jglee72/537054a8e030838f86012a78cc565e67 to your computer and use it in GitHub Desktop.
textField.py
# coding: utf-8
import ui
class accountField (ui.View):
'''Each account display of current balance. associated button for adding transactions. editable field for balance update
'''
def __init__ (self,frame_loc=(0,0)):
self.acc_field= ui.TextView(frame=frame_loc+(150,64),bg_color=(1.0, .0, .0,0.5),text_color=('white'),font=('AmericanTypewriter-Bold',17), text=('text'),border_color=('#412190'),border_width=3,border_radius=20,alignment=ui.ALIGN_LEFT,alpha=0.5,selected=(False),editable=False)
#add items to the View
# self.add_subview(self.acc_field)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment