Giter VIP home page Giter VIP logo

drawing-board-tkinter's Introduction

drawing board example program

sample.png

PythonのGUIフレームワークTkinterを用いた絵描きボードプログラム。 GUIフレームワークのHelloWorldとして、Kivyとの比較の為に作ってみた。

操作はとてもシンプル、線を描く、描写をやり直す、絵を保存、絵を読み込むのみ。 習うより慣れろ、忙しい中にもコーディングを!の精神で作った。

必要なモノ

  • Python3

使い方

python drawing.py

Windowsバイナリ作成方法

build-pyinstaller.sh を実行するのみ。CommandNotFoundな時は shbat に変えればよいかも。 うまくいくと dist にEXEができているはず。

Memo

Tkinterはシンプルで簡単で初心者フレンドりーな印象。 Pythonに標準で入っているし、日本語など打ち込んでも文字化けしないので困らない。 初心者の為のGUIフレームワークと言えそう。簡単な操作のみのGUI画面が必要ならばコレでいいと思う。

ただし、簡単でないGUIならば苦労するしできない事が多い。また、いろいろ設計が古いところがあり、今風の操作画面を作ることができなし、 Tkinter自体はシングルスレッドだと制限がかけられているようだ、条件はよくわからないがマルチスレッディングなプログラムを書くと例外を出される。

KivyにはKivyファイルという形で外部にスタイルシートを格納する事ができ、Pyファイルには純粋に動作のみ記述できるので プログラムの規模が大きくなるとKivyの方が後々楽になる。だけど別に記述するせいか学習コストが高くなっているので、Python初心者が急に やろうとすると困惑するかもしれない。もちろんKivyファイルを使わないやり方もあるけど日本語情報が少ないのが難点。

License

MIT

drawing-board-tkinter's People

Contributors

namuyan avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.