筆者はプログラマーというわけではないが、たまにプログラムを書く。主に使用する言語はPythonだ。 とはいえ、ライブラリをいい感じに組み合わせて動かしているだけで、それをプログラムと呼んでいいのか自分でも葛藤があるくらいだ。自信はまったく ...
Python3系を使ってGUIを構築で生きる標準ライブラリTkinterを使ってゲームを作っていきます。ゲームとしては、ランダムに文字が出てきて、それをどれぐらい正確に打てるかというゲームです。 まずゲーム画面のみをだします。基本のコードです。 import tkinter ...
Why Do You Need To Set Options Anyway? Well, imagine you’ve got a button or label, and you want it to say something cool like, “Hello, World!” or display an image or have a specific font style. To ...
In any Tkinter program, the first thing you need is a window. This window will act as a container for your app. This line brings the Tkinter library into your program. We give it the nickname tk so we ...
第9回は、オブジェクト指向のスクリプト言語であるPythonを使ってみましょう。PythonのHello Worldは、リスト1のようにprintを使って記述すればOKです。文字列の最後に改行コードを付ける必要はありません。Pythonの文字列は、Perl等とは違って、シングルクォート ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する