大帝国っぽいゲームを作るスレ 1at GAMEDEV大帝国っぽいゲームを作るスレ 1 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト4:名前は開発中のものです。 24/06/16 10:02:30.11 ODAomjDr.net def display_deck(): if selected_items_deck: chat_messages.delete(1.0, tk.END) # Clear existing messages for item in selected_items_deck: chat_messages.insert(tk.END, f"{item}\n") else: chat_messages.delete(1.0, tk.END) # Clear existing messages chat_messages.insert(tk.END, "デッキが空です") root = tk.Tk() root.title("Excel風表") root.geometry("960x540") # ウィンドウのサイズを設定 # 表を左側に配置 tree = ttk.Treeview(root, columns=("one", "two")) tree.column("#0", width=150, minwidth=150, stretch=tk.NO) tree.column("one", width=100, minwidth=100, stretch=tk.NO) tree.column("two", width=100, minwidth=100, stretch=tk.NO) tree.heading("#0", text="Name", anchor=tk.W) tree.heading("one", text="Age", anchor=tk.W) tree.heading("two", text="Country", anchor=tk.W) tree.pack(side=tk.LEFT, padx=20) # サンプルデータの挿入 tree.insert("", "end", text="John Doe", values=("25", "USA")) tree.insert("", "end", text="Anna Smith", values=("30", "UK")) tree.insert("", "end", text="Peter Brown", values=("28", "Canada")) tree.pack(pady=20) 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch