make-selection 1.0.9__tar.gz → 1.0.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: make_selection
3
- Version: 1.0.9
3
+ Version: 1.0.11
4
4
  Summary: Package for interactive command line menu
5
5
  Author-email: Steven Frazee <stevefrazee123@gmail.com>
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "make_selection"
3
- version = "1.0.9"
3
+ version = "1.0.11"
4
4
  authors = [
5
5
  { name="Steven Frazee", email="stevefrazee123@gmail.com" },
6
6
  ]
@@ -8,17 +8,17 @@ Ansi escape codes are used as described here: https://gist.github.com/fnky/45871
8
8
  # TODO: multi_select: TAB switches to delete mode.
9
9
  import sys
10
10
  if sys.platform == "win32":
11
- from mappings.windows import getChar
11
+ from .mappings.windows import getChar
12
12
  multi_select_modifier_string = "Ctl"
13
13
  elif sys.platform == "darwin":
14
- from mappings.mac import getChar
14
+ from .mappings.mac import getChar
15
15
  multi_select_modifier_string = "Cmd"
16
16
  else:
17
17
  raise NotImplementedError(f"Platform '{sys.platform}' not supported!")
18
18
  from typing import Any
19
19
  from copy import copy
20
20
  from enum import Enum
21
- from key_codes import KeyCode
21
+ from .key_codes import KeyCode
22
22
 
23
23
  ANSI_MOVE_CURSOR = "\x1b[{up}F\r\x1b[{right}C"
24
24
  ANSI_HIGHLIGHT = "\x1b[30;47m"
@@ -2,7 +2,7 @@ import os
2
2
  import sys
3
3
  import termios
4
4
  import tty
5
- from key_codes import KeyCode
5
+ from ..key_codes import KeyCode
6
6
 
7
7
  ARROW_UP = b"\x1b[A"
8
8
  ARROW_DOWN = b"\x1b[B"
@@ -1,6 +1,6 @@
1
1
  import msvcrt
2
2
  import ctypes
3
- from key_codes import KeyCode
3
+ from ..key_codes import KeyCode
4
4
 
5
5
  stdout = -11
6
6
  enable_ansi_codes = 7
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: make_selection
3
- Version: 1.0.9
3
+ Version: 1.0.11
4
4
  Summary: Package for interactive command line menu
5
5
  Author-email: Steven Frazee <stevefrazee123@gmail.com>
6
6
  Classifier: License :: OSI Approved :: MIT License
File without changes