筆者はプログラマーというわけではないが、たまにプログラムを書く。主に使用する言語はPythonだ。 とはいえ、ライブラリをいい感じに組み合わせて動かしているだけで、それをプログラムと呼んでいいのか自分でも葛藤があるくらいだ。自信はまったく ...
tkinter.Tkを継承するclassを作成する。 イニシャライザ第一引数にself、第二引数に可変長引数*args、 第三引数に可変長引数**kwargsを設定する。 class Application(tkinter.Tk): def __init__(self, *args, **kwargs): tkinter.Tk.__init__(self, *args, kwargs) ...
簡単にプログラムが作れるように解説していきます。 何か分からないことや、困ったことがあったら 直感的に操作しやすいものとなっていますね。 同じように、上のマルバツゲームを直感的に 操作しやすいゲームに作り替えようと思うと、 GUI ...
「Tkinter」というGUIライブラリを利用することで、PythonでもデスクトップのGUIアプリを作成できる。その方法を解説しよう。 最初に、すべての基本となる「1枚のウインドウを表示するだけのアプリ」をPython+Tkinterで作りましょう。プログラム(ソースコード ...
プログラミングの腕を磨くために、ゲーム制作に挑戦するのは、とても良い方法だ。なぜなら、ゲームは遊ぶだけではなく、作るのも楽しいので、楽しみながら、プログラミングを覚えることができるからだ。 そのため、Pythonを身につけようと思って ...
In this tutorial, we’ll explore how to create and customize a Tkinter window in Python. You’ll learn how to change the window’s title, resize it, set transparency, modify the stacking order, and even ...
y_scroll = tkinter.Scrollbar(frame1, orient=tkinter.VERTICAL, command=canvas.yview) #縦ならVERTICAL、横ならHORIZONTAL y_scroll.pack(side=tkinter.RIGHT, fill="y ...
You can create a release to package software, along with release notes and links to binary files, for other people to use. Learn more about releases in our docs.
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 ...
現在アクセス不可の可能性がある結果が表示されています。
アクセス不可の結果を非表示にする