File tree 3 files changed +13
-7
lines changed
3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ You can install this library via PIP:
8
8
9
9
pip install botbuilder-community-dialogs-prompts
10
10
11
+ You can then import required types, for example:
12
+
13
+ ``` python
14
+ from botbuilder.community.dialogs.prompts import NumberWithUnitPrompt, NumberWithUnitPromptType
15
+ ```
16
+
11
17
## Number with Unit
12
18
13
19
The number with unit prompt allows you to prompt for four different unit types:
Original file line number Diff line number Diff line change 1
1
from .about import __version__
2
- from number_with_type_prompt import NumberWithTypePrompt , NumberWithTypePromptType
3
- from number_with_unit_prompt import NumberWithUnitPrompt , NumberWithUnitPromptType ,NumberWithUnitResult
4
- from phone_prompt import PhoneNumberPrompt
5
- from email_prompt import EmailPrompt
6
- from internet_protocol_prompt import InternetProtocolPrompt ,InternetProtocolPromptType
7
- from guid_prompt import GuidPrompt
2
+ from . number_with_type_prompt import NumberWithTypePrompt , NumberWithTypePromptType
3
+ from . number_with_unit_prompt import NumberWithUnitPrompt , NumberWithUnitPromptType ,NumberWithUnitResult
4
+ from . phone_prompt import PhoneNumberPrompt
5
+ from . email_prompt import EmailPrompt
6
+ from . internet_protocol_prompt import InternetProtocolPrompt ,InternetProtocolPromptType
7
+ from . guid_prompt import GuidPrompt
8
8
9
9
__all__ = [
10
10
"NumberWithUnitPrompt" ,
Original file line number Diff line number Diff line change 12
12
13
13
class PhoneNumberPrompt (Prompt ):
14
14
def __init__ (
15
- self ,
15
+ self ,
16
16
dialog_id ,
17
17
validator : object = None ,
18
18
default_locale = None ):
You can’t perform that action at this time.
0 commit comments