最近、プログラム言語である『Python』を勉強しています。学んだことをnoteで綴っていきたいと思います。 今回はtkinterを使用して、ボタンウィジェットの作成・設定について解説していきます。まずは簡単なものから作成していきます。 Tkinterでボタンを ...
「Tkinter」というGUIライブラリを利用することで、PythonでもデスクトップのGUIアプリを作成できる。 その方法を解説しよう。 Tkinterを含む大抵のGUIライブラリは、「イベントドリブン」という仕組みを採用しています。
ラズパイはミニPCの一つですが、WindowsなどのOSと趣旨が違いより外部機器とやり取りしやすい構造になっています。例えばカメラモジュールは取り付けてちょっと初期設定をすれば、Python等から比較的簡単に操作できます。 ところで、外部機器とやり取り ...
The Tkinter Button widget is a graphical control element used in Python’s Tkinter library to create clickable buttons in a graphical user interface (GUI). It provides a way for users to trigger ...
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 ...
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.