Results of 1 - 10 of about 89 for Color (0.014 sec.)
- 列挙型 HOWTO — Python 3.14.8 ドキュメント 11284
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr
...= 4 ... FRIDAY = 5 ... SATURDAY = 6 ... SUNDAY = 7 あるいは、RGB三原色でも構いません: >>> from enum import Enum >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 ご覧の通り、 Enum の作成は Enum 自体を継承するクラスを作成するのと同じくら...的にメンバーに番号でアクセスしたほうが便利な場合があります (すなわち、プログラムを書いている時点で正確な色がまだわからなく、 Color.RED と書くのが無理な場合など)。 Enum ではそのようなアクセスも可能です: >>> Color ( 1 ) <Color.RED: 1> >>> Color ( 3 ) <Col...or.BLUE: 3> 列挙型メンバーに 名前 でアクセスしたい場合はアイテムとしてアクセスできます: >>> Color [ 'RED' ] <Color.RED: 1> >>> Color [ 'GREEN' ] <Color.GREEN: 2> If you have an enum member and need its name or value : >>... - https://man.mtool.work/python/3.14/howto/enum.html
- 列挙型 HOWTO — Python 3.14.8 ドキュメント 11284
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr
...= 4 ... FRIDAY = 5 ... SATURDAY = 6 ... SUNDAY = 7 あるいは、RGB三原色でも構いません: >>> from enum import Enum >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 ご覧の通り、 Enum の作成は Enum 自体を継承するクラスを作成するのと同じくら...的にメンバーに番号でアクセスしたほうが便利な場合があります (すなわち、プログラムを書いている時点で正確な色がまだわからなく、 Color.RED と書くのが無理な場合など)。 Enum ではそのようなアクセスも可能です: >>> Color ( 1 ) <Color.RED: 1> >>> Color ( 3 ) <Col...or.BLUE: 3> 列挙型メンバーに 名前 でアクセスしたい場合はアイテムとしてアクセスできます: >>> Color [ 'RED' ] <Color.RED: 1> >>> Color [ 'GREEN' ] <Color.GREEN: 2> If you have an enum member and need its name or value : >>... - https://man.mtool.work/python/3.14/howto/enum.html
- enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 11043
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » enum --- 列挙型のサポート テーマ 自動 ライト ダーク | enum --- 列挙型のサポート ¶ Added in version 3.4. ソースコード: Li
...は、 class 構文を使用するか、関数呼び出し構文を使用して作成されます: >>> from enum import Enum >>> # class syntax >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 >>> # functional syntax >>> Color = Enum ( 'Color' , [( 'RED' , 1 ), ( 'G...用できるものの、Enum は通常の Python クラスではありません。詳細は Enum はどう違うのか? を参照してください。 注釈 用語 クラス Color は 列挙型 (または Enum ) です 属性 Color.RED , Color.GREEN などは 列挙型のメンバー (または メンバー ) で、機能的には定数で...す。 列挙型のメンバーは 名前 と 値 を持ちます ( Color.RED の名前は RED 、 Color.BLUE の値は 3 など。) モジュールの内容 ¶ EnumType Enumおよびそのサブクラスのための type です。 E... - https://man.mtool.work/python/3.14/library/enum.html
- enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 11043
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » enum --- 列挙型のサポート テーマ 自動 ライト ダーク | enum --- 列挙型のサポート ¶ Added in version 3.4. ソースコード: Li
...は、 class 構文を使用するか、関数呼び出し構文を使用して作成されます: >>> from enum import Enum >>> # class syntax >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 >>> # functional syntax >>> Color = Enum ( 'Color' , [( 'RED' , 1 ), ( 'G...用できるものの、Enum は通常の Python クラスではありません。詳細は Enum はどう違うのか? を参照してください。 注釈 用語 クラス Color は 列挙型 (または Enum ) です 属性 Color.RED , Color.GREEN などは 列挙型のメンバー (または メンバー ) で、機能的には定数で...す。 列挙型のメンバーは 名前 と 値 を持ちます ( Color.RED の名前は RED 、 Color.BLUE の値は 3 など。) モジュールの内容 ¶ EnumType Enumおよびそのサブクラスのための type です。 E... - https://man.mtool.work/python/3.14/library/enum.html
- curses --- 文字セル表示のターミナル処理 — Python 3.14.8 ドキュメント 9238
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » curses --- 文字セル表示のターミナル処理 テーマ 自動 ライト ダーク | curses --- 文字セル表
...ring or a one-byte byte string. An integer is the code of a single encoded byte, optionally combined with attributes and a color pair, as returned by window.inch() . Whenever the documentation mentions a character string it can be specified as a Unico...attr がある場合、デフォルト値は A_NORMAL です。 The module curses defines the following functions: curses. assume_default_colors ( fg , bg , / ) ¶ Allow use of default values for colors on terminals supporting this feature. Use this to support transp...arency in your application. Assign terminal default foreground/background colors to color number -1 . So init_pair(x, COLOR_RED, -1) will initialize pair x as red on default background and init_pair(x,... - https://man.mtool.work/python/3.14/library/curses.html
- curses --- 文字セル表示のターミナル処理 — Python 3.14.8 ドキュメント 9238
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » curses --- 文字セル表示のターミナル処理 テーマ 自動 ライト ダーク | curses --- 文字セル表
...ring or a one-byte byte string. An integer is the code of a single encoded byte, optionally combined with attributes and a color pair, as returned by window.inch() . Whenever the documentation mentions a character string it can be specified as a Unico...attr がある場合、デフォルト値は A_NORMAL です。 The module curses defines the following functions: curses. assume_default_colors ( fg , bg , / ) ¶ Allow use of default values for colors on terminals supporting this feature. Use this to support transp...arency in your application. Assign terminal default foreground/background colors to color number -1 . So init_pair(x, COLOR_RED, -1) will initialize pair x as red on default background and init_pair(x,... - https://man.mtool.work/python/3.14/library/curses.html
- tkinter.colorchooser --- カラー選択ダイアログ — Python 3.14.8 ドキュメント 9198
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter.colorchooser --- カラー選択ダイアログ テーマ 自動 ライト ダーク | tkinter.colorchooser
...--- カラー選択ダイアログ ¶ ソースコード: Lib/tkinter/colorchooser.py The tkinter.colorchooser module provides the Chooser class as an interface to the native color picker dialog. Ch...ooser implements a modal color choosing dialog window. The Chooser class inherits from the Dialog class. class tkinter.colorchooser. Chooser ( master = N...one , ** options ) ¶ The class implementing the modal color-choosing dialog. Most applications use the askcolor() convenience function rather than instantiating this class directly.... - https://man.mtool.work/python/3.14/library/tkinter.colorchooser.html
- tkinter.colorchooser --- カラー選択ダイアログ — Python 3.14.8 ドキュメント 9198
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter.colorchooser --- カラー選択ダイアログ テーマ 自動 ライト ダーク | tkinter.colorchooser
...--- カラー選択ダイアログ ¶ ソースコード: Lib/tkinter/colorchooser.py The tkinter.colorchooser module provides the Chooser class as an interface to the native color picker dialog. Ch...ooser implements a modal color choosing dialog window. The Chooser class inherits from the Dialog class. class tkinter.colorchooser. Chooser ( master = N...one , ** options ) ¶ The class implementing the modal color-choosing dialog. Most applications use the askcolor() convenience function rather than instantiating this class directly.... - https://man.mtool.work/python/3.14/library/tkinter.colorchooser.html
- turtle --- Turtle graphics — Python 3.14.8 ドキュメント 9131
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » turtle --- Turtle graphics テーマ 自動 ライト ダーク | turtle --- Turtle graphics ¶ ソースコード
...ckward() and right() . Many commands also have shorter aliases, such as fd() for forward() . Pen の制御 ¶ Try changing the color - for example, color('blue') - and width of the line - for example, width(3) - and then drawing again. You can also move t...ng loops, it's possible to build up geometric patterns: for steps in range ( 100 ): for c in ( 'blue' , 'red' , 'green' ): color ( c ) forward ( steps ) right ( 30 ) - which of course, are limited only by the imagination! Let's draw the star shape at...the top of this page. We want red lines, filled in with yellow: color ( 'red' ) fillcolor ( 'yellow' ) Just as up() and down() determine whether lines will be drawn, filling can be turned on a... - https://man.mtool.work/python/3.14/library/turtle.html
- turtle --- Turtle graphics — Python 3.14.8 ドキュメント 9131
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » turtle --- Turtle graphics テーマ 自動 ライト ダーク | turtle --- Turtle graphics ¶ ソースコード
...ckward() and right() . Many commands also have shorter aliases, such as fd() for forward() . Pen の制御 ¶ Try changing the color - for example, color('blue') - and width of the line - for example, width(3) - and then drawing again. You can also move t...ng loops, it's possible to build up geometric patterns: for steps in range ( 100 ): for c in ( 'blue' , 'red' , 'green' ): color ( c ) forward ( steps ) right ( 30 ) - which of course, are limited only by the imagination! Let's draw the star shape at...the top of this page. We want red lines, filled in with yellow: color ( 'red' ) fillcolor ( 'yellow' ) Just as up() and down() determine whether lines will be drawn, filling can be turned on a... - https://man.mtool.work/python/3.14/library/turtle.html