Results of 1 - 2 of about 2 for minvalue (0.002 sec.)
- デスクリプタ ガイド 11228
- デスクリプタ ガイド Author : Raymond Hettinger Contact : <python at rcn dot com> デスクリプタ を使うと、オブジェクトの属性の検索、保存、削除をカスタマイズできます。 本ガイドは4つの大項目から構成されています。 最初の「入門」では基本の紹介をし
...lueError ( f 'Expected { value !r} to be one of { self . options !r} ' ) class Number ( Validator ): def __init__ ( self , minvalue = None , maxvalue = None ): self . minvalue = minvalue self . maxvalue = maxvalue def validate ( self , value ): if not is...instance ( value , ( int , float )): raise TypeError ( f 'Expected { value !r} to be an int or float' ) if self . minvalue is not None and value < self . minvalue : raise ValueError ( f 'Expected { value !r} to be at least { self . minvalue !r}...minsize = 3 , maxsize = 10 , predicate = str . isupper ) kind = OneOf ( 'wood' , 'metal' , 'plastic' ) quantity = Number ( minvalue = 0 ) def __init__ ( self , name , kind , quantity ): self . name = name self . kind = kind self . quantity = quantity これ... - https://man.mtool.work/python/3.14/howto/descriptor.html
- Tkinter のダイアログ 7485
- Tkinter のダイアログ tkinter.simpledialog --- Tkinter の標準入力ダイアログ ソースコード: Lib/tkinter/simpledialog.py tkinter.simpledialog モジュールには、ユーザーから値を受け取るための単純なモーダルダイアログを作る便利なクラスと関数がありま
...す。 tkinter.simpledialog. askfloat ( title , prompt , * , initialvalue = None , minvalue = None , maxvalue = None , parent = None ) tkinter.simpledialog. askinteger ( title , prompt , * , initialvalue = None , m...は入力欄の初期値です。 parent はダイアログの背後に置くウィンドウです。 askinteger() と askfloat() は、入力値の範囲を制限する minvalue と maxvalue も受け付けます。 askstring() は、入力されたテキストを隠す文字を指定する show も受け付けます。 例えばパスワード... - https://man.mtool.work/python/3.14/library/dialog.html
PREV
1
NEXT