PDFを結合したり分離させたりするアプリ「CubePDF」みたいなものが 自作できそうだと思ったので、Tkinterというものを学習してみました。 そこで今回はTkinter入門ということで、 よく使用する基本的なものについて、さらっと書いていこうと思います。
今回はタイトル通りcommandオプションに指定した関数に引数をわたしたい時の解決方法について、今後またつまづいた時のための自戒として記録しておくことにしました。(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 ...
プログラミングの腕を磨くために、ゲーム制作に挑戦するのは、とても良い方法だ。なぜなら、ゲームは遊ぶだけではなく、作るのも楽しいので、楽しみながら、プログラミングを覚えることができるからだ。 そのため、Pythonを身につけようと思って ...
font_title = font.Font(family="Terminal", size=14, weight=font.BOLD) font_text = font.Font(family="Modern", size=10, weight=font.BOLD) B = Button(window, text="Hello ...
So far we have seen labels, buttons, images, etc in Python’s built-in toolkit Tkinter. With any of the widgets, we were using a method called pack(). And if you are like me you would love to explore ...
Code below has 1 major and 1 minor problem. Major issue is, once you push the button it visually stays pushed. Minor problem is, I run this in Cygwin. I've got an rxvt window behind the Tk window.
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する