def start(self, channel): self.state = START_STATE self.timer = WAIT self.players = [] self.deck = Deck() self.current_player = 0 self.chat = Chat(self.slack_client, channel) self.pot_manager = PotManager(self.chat) self.join_manager = JoinManager(self.slack_client, channel, self.players) self.bet_manager = BetManager(self.pot_manager, self.players) self.board = [] self.last_message = None self.board_message = None
import tkinter as tk from tkinter import ttk from tkinter import messagebox import constants as const from bet_manager import BetManager import threading import time from datetime import datetime from subprocess import call bet_manager = BetManager() # intializing the window window = tk.Tk() window.title(const.app_name) # configuring size of the window window.geometry(const.app_geometry) s = ttk.Style() s.configure('TNotebook.Tab', font=const.font_arial_14) # Create Tab Control def update_ui(event): update_tab_main() reset_tab_settings() TAB_CONTROL = ttk.Notebook(window) TAB_CONTROL.bind("<<NotebookTabChanged>>", update_ui)