Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

コンピュータ演習A 25 : d10(6/23) Python-IV(chap 6), GUI=単なる見かけ

Last updated at Posted at 2023-06-12

init

  • Mikatype試験の予行演習(どこ?ハンカチ)
  • 最終課題と発表,評価
  • Bend the brain

学ぶ項目

隠蔽(カプセル化)

  • method化(名前,役割)
  • トグル表示
  • (divide and conquer, 分割統治=>各個撃破)

デバッグ

  • テスト駆動(TDD, EX)
    • 標語(mantora) : Red, Green, Refactoring
  • 動作を予測
  • 文法エラー
  • printデバッグ
  • 検索(Edge =>, co-pilot(2020) =>, ChatGPT(2025))
  • アヒルちゃん

単なる見かけ(It's just a view.)

  • GUI vs CUI again
  • GUIの構成要素は何?
  • TkinterでGUI

tkinter 注意

  • wsl 日本語表示の不具合

    • sudo apt install -y fonts-takao-gothic

    • これで,画面内の日本語表示は解決できる

      • tkinterのウィンドウタイトルとウィジェットで異なるフォントシステムが使用される
      • WSL2環境でのGUIアプリケーションはXサーバーとWSLgの混在で複雑な問題が発生
      • 片無せつな実体化計画 らしいので断念.
  • mac

ウィンドウ画像のキャプチャ(捕獲, capture)

  • kickoff -c

markdownに

  • 画像を貼り付けてcodeで表示

    ![tkinter_sample](./FILE_NAME.png)
    

課題

  1. Lesson6-2を参照して,tkinterで400x150の数当てゲームの画面を作りなさい.
  2. Lesson6-3を参照して,入出力を操作するcodeを書きなさい.
  3. Lesson6-4を参照して,ボタンを押された時にメッセージを表示しなさい.
  4. Lesson6-5を参照して,hit&blowの当たり判定を組み込みなさい.
  5. Lesson6-6を参照して,遊びやすいゲームにしなさい.
  6. zipファイルをLUNAに提出してください
    1. md, py, pngを含めたdirectoryごとzipにまとめてLUNAに提出しなさい.
    2. 一つ上に上がって
      1. zip -r d10_tkinter.zip d10_tekinter
    3. on vscode
      • extensionでMarkdown Preview Enhancedをinstall
      • 画像ファイル,ソースコードファイル
        ![alt txt](file/path))


        @import "./d10_tkinter.py" {class="line-numbers}
  1. こいつはoption
    1. 先週のオプション課題のリンクを参照して完動チェック版にしなさい.

  • source ~/Desktop/lecture_25s/comp_a_25s/python/orgs/d10_tkinter.org
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?