大帝国っぽいゲームを作るスレ 1at GAMEDEV大帝国っぽいゲームを作るスレ 1 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト5:名前は開発中のものです。 24/06/16 10:03:30.45 ODAomjDr.net # ボタンとラベルを右側に配置 frame_right = tk.Frame(root) frame_right.pack(side=tk.RIGHT, padx=20) show_button = tk.Button(frame_right, text="選択した項目を表示", command=show_selected_item) show_button.pack() add_button = tk.Button(frame_right, text="選択した項目をデッキに追加", command=add_to_deck) add_button.pack() delete_button = tk.Button(frame_right, text="デッキから項目を削除", command=delete_from_deck) delete_button.pack() label = tk.Label(frame_right, text="") label.pack() # チャット風のメッセージ表示エリアを作成 chat_messages = tk.Text(frame_right, wrap=tk.WORD, height=10, width=40) chat_messages.pack() # デッキ内容を表示するボタンを追加 display_deck_button = tk.Button(frame_right, text="デッキ内容を表示", command=display_deck) display_deck_button.pack() root.mainloop() 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch