120120
121121import string
122122
123- from pywebio .input import *
124123from pywebio .input import parse_input_update_spec
125124from pywebio .output import Scope , OutputPosition , Output
126125from pywebio .output import _get_output_spec
@@ -147,6 +146,7 @@ def _pin_output(single_input_return, scope, position):
147146def put_input (name , type = 'text' , * , label = '' , value = None , placeholder = None , readonly = None , datalist = None ,
148147 help_text = None , scope = Scope .Current , position = OutputPosition .BOTTOM ) -> Output :
149148 """Output an input widget. Refer to: `pywebio.input.input()`"""
149+ from pywebio .input import input
150150 check_name (name )
151151 single_input_return = input (name = name , label = label , value = value , type = type , placeholder = placeholder ,
152152 readonly = readonly , datalist = datalist , help_text = help_text )
@@ -156,6 +156,7 @@ def put_input(name, type='text', *, label='', value=None, placeholder=None, read
156156def put_textarea (name , * , label = '' , rows = 6 , code = None , maxlength = None , minlength = None , value = None , placeholder = None ,
157157 readonly = None , help_text = None , scope = Scope .Current , position = OutputPosition .BOTTOM ) -> Output :
158158 """Output a textarea widget. Refer to: `pywebio.input.textarea()`"""
159+ from pywebio .input import textarea
159160 check_name (name )
160161 single_input_return = textarea (
161162 name = name , label = label , rows = rows , code = code , maxlength = maxlength ,
@@ -166,6 +167,7 @@ def put_textarea(name, *, label='', rows=6, code=None, maxlength=None, minlength
166167def put_select (name , options = None , * , label = '' , multiple = None , value = None , help_text = None ,
167168 scope = Scope .Current , position = OutputPosition .BOTTOM ) -> Output :
168169 """Output a select widget. Refer to: `pywebio.input.select()`"""
170+ from pywebio .input import select
169171 check_name (name )
170172 single_input_return = select (name = name , options = options , label = label , multiple = multiple ,
171173 value = value , help_text = help_text )
@@ -175,6 +177,7 @@ def put_select(name, options=None, *, label='', multiple=None, value=None, help_
175177def put_checkbox (name , options = None , * , label = '' , inline = None , value = None , help_text = None ,
176178 scope = Scope .Current , position = OutputPosition .BOTTOM ) -> Output :
177179 """Output a checkbox widget. Refer to: `pywebio.input.checkbox()`"""
180+ from pywebio .input import checkbox
178181 check_name (name )
179182 single_input_return = checkbox (name = name , options = options , label = label , inline = inline , value = value ,
180183 help_text = help_text )
@@ -184,6 +187,7 @@ def put_checkbox(name, options=None, *, label='', inline=None, value=None, help_
184187def put_radio (name , options = None , * , label = '' , inline = None , value = None , help_text = None ,
185188 scope = Scope .Current , position = OutputPosition .BOTTOM ) -> Output :
186189 """Output a radio widget. Refer to: `pywebio.input.radio()`"""
190+ from pywebio .input import radio
187191 check_name (name )
188192 single_input_return = radio (name = name , options = options , label = label , inline = inline , value = value ,
189193 help_text = help_text )
@@ -193,6 +197,7 @@ def put_radio(name, options=None, *, label='', inline=None, value=None, help_tex
193197def put_slider (name , * , label = '' , value = 0 , min_value = 0 , max_value = 100 , step = 1 , required = None , help_text = None ,
194198 scope = Scope .Current , position = OutputPosition .BOTTOM ) -> Output :
195199 """Output a slide widget. Refer to: `pywebio.input.slider()`"""
200+ from pywebio .input import slider
196201 check_name (name )
197202 single_input_return = slider (name = name , label = label , value = value , min_value = min_value , max_value = max_value ,
198203 step = step , required = required , help_text = help_text )
0 commit comments