タグ

tclに関するkiyo_hikoのブックマーク (3)

  • TkTable

    TkTableは、Tkで表を扱うためのWidgetを提供します。TkのWidgetと同等に扱えます。 TkTableは、最近のActiveTclにも添付されているので、簡単に使えるようになりました。 TkTableを使うと、簡単に表とスプレッドシート(表計算ソフト)を作ることができます。 表の作成 Tktableパッケージをロードすると、table Widgetが使えるようになります。 以下は、table Widgetを使って5行5列の表を作成しています。 package require Tktable # 5行5列のテーブル pack [table .t -variable ary -rows 5 -cols 5] # 配列の添え字の表示 for {set i 0} {$i < 5} {incr i} { for {set j 0} {$j < 5} {incr j} { set ary

    kiyo_hiko
    kiyo_hiko 2012/03/30
    Perl/Tkの参考に
  • Tk Built-In Commands - colors manual page

    NAME colors - symbolic color names recognized by Tk DESCRIPTION Tk recognizes many symbolic color names (e.g., red) when specifying colors. The symbolic names recognized by Tk and their 8-bit RGB values are: Name Red Green Blue alice blue 240 248 255 AliceBlue 240 248 255 antique white 250 235 215 AntiqueWhite 250 235 215 AntiqueWhite1 255 239 219 AntiqueWhite2 238 223 204 AntiqueWhite3 205 192 17

    kiyo_hiko
    kiyo_hiko 2011/06/09
    Tkライブラリーのビルトインカラー定数一覧。10進だけじゃなくてサンプルカラー付きのページがあるとより良いのだが・・・
  • TkDocs Tutorial - The Grid Geometry Manager

    We'll take a bit of a break from talking about different widgets (what to put onscreen) and focus instead on geometry management (where to put those widgets). We introduced the general idea of geometry management in the "Tk Concepts" chapter. Here, we focus on one specific geometry manager: "grid". As we've seen, grid lets you layout widgets in columns and rows. If you're familiar with using HTML

    kiyo_hiko
    kiyo_hiko 2011/05/05
    Gridレイアウトの使い方まとめ
  • 1