ラズパイはミニPCの一つですが、WindowsなどのOSと趣旨が違いより外部機器とやり取りしやすい構造になっています。例えばカメラモジュールは取り付けてちょっと初期設定をすれば、Python等から比較的簡単に操作できます。 ところで、外部機器とやり取り ...
最近、プログラム言語である『Python』を勉強しています。学んだことをnoteで綴っていきたいと思います。 今回はtkinterを使用して、ボタンウィジェットの作成・設定について解説していきます。まずは簡単なものから作成していきます。 Tkinterでボタンを ...
Are you looking to make your Tkinter application more interactive and responsive? Well, you’re in the right place! In this tutorial, we’ll dive into the world of Tkinter command binding, which allows ...
We’ll be working with the versatile ttk.Button widget to make buttons that display text, and images, or even do cool stuff like opening websites.
プログラミングの腕を磨くために、ゲーム制作に挑戦するのは、とても良い方法だ。なぜなら、ゲームは遊ぶだけではなく、作るのも楽しいので、楽しみながら、プログラミングを覚えることができるからだ。 そのため、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 ...