def __init__(self, mh, mw): ''' Takes in the max height and width from the main screen element ''' self.cmap = ColorMap() init_win = initWindow(mh, mw, self.cmap) self.ds_win = init_win.create('dropshadow', 'black_card', mh, mw)
def __init__(self, y, x, suit, value, suit_color): self.suit = suit self.value = value self.suit_color = suit_color self.cmap = ColorMap() init_win = initWindow(7, 9, self.cmap, y, x) self.ce_win = init_win.create('card', 'white_card')
def __init__(self, mh, mw, hand=None): self.selected_cards = [] self.cmap = ColorMap() self.max_h = 1 self.max_w = 40 init_win = initWindow(mh, mw, self.cmap) self.cs_win = init_win.create('cardselect', 'blue_card', mh, mw) self.hand = hand
def __init__(self, win): self.cmap = ColorMap() self.max_h, self.max_w = win.getmaxyx() self.max_h, self.max_w = 24, 79 init_win = initWindow(self.max_h, self.max_w, self.cmap) self.line1_win = init_win.create( 'titleline1', 'black_card', h=1, w=17) self.line2_win = init_win.create( 'titleline2', 'black_card', h=1, w=46)
def __init__(self, mh, mw): self.cmap = ColorMap() self.name_pos_map = { 'Nothing': 0, 'One pair': 1, 'Two pair': 2, 'Three-of-a-kind': 3, 'Straight': 4, 'Flush': 5, 'Full house': 6, 'Four-of-a-kind': 7, 'Straight flush': 8, 'Royal flush': 9 } init_win = initWindow(mh, mw, self.cmap) self.ch_win = init_win.create('currenthand', 'blue_card')
def __init__(self, mh, mw): self.cmap = ColorMap() init_win = initWindow(mh, mw, self.cmap) self.ip_win = init_win.create('infopanel', 'black_card', mh, mw) self.mapping = Mappings() self.user_data = UserData()
def __init__(self, mh, mw): self.cmap = ColorMap() h = mh w = mw init_win = initWindow(mh, mw, self.cmap) self.hw_win = init_win.create('handdisplay', 'blue_card', h, w)