-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy path__init__.pyi
More file actions
177 lines (163 loc) · 5.72 KB
/
__init__.pyi
File metadata and controls
177 lines (163 loc) · 5.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
import sys
from collections.abc import Container, Iterable, Sequence
from types import ModuleType
from typing import Any, Final
if sys.platform == "win32":
from _msi import *
from _msi import _Database
AMD64: Final[bool]
Win64: Final[bool]
datasizemask: Final = 0x00FF
type_valid: Final = 0x0100
type_localizable: Final = 0x0200
typemask: Final = 0x0C00
type_long: Final = 0x0000
type_short: Final = 0x0400
type_string: Final = 0x0C00
type_binary: Final = 0x0800
type_nullable: Final = 0x1000
type_key: Final = 0x2000
knownbits: Final = 0x3FFF
class Table:
name: str
fields: list[tuple[int, str, int]]
def __init__(self, name: str) -> None: ...
def add_field(self, index: int, name: str, type: int) -> None: ...
def sql(self) -> str: ...
def create(self, db: _Database) -> None: ...
class _Unspecified: ...
def change_sequence(
seq: Sequence[tuple[str, str | None, int]],
action: str,
seqno: int | type[_Unspecified] = ...,
cond: str | type[_Unspecified] = ...,
) -> None: ...
def add_data(db: _Database, table: str, values: Iterable[tuple[Any, ...]]) -> None: ...
def add_stream(db: _Database, name: str, path: str) -> None: ...
def init_database(
name: str, schema: ModuleType, ProductName: str, ProductCode: str, ProductVersion: str, Manufacturer: str
) -> _Database: ...
def add_tables(db: _Database, module: ModuleType) -> None: ...
def make_id(str: str) -> str: ...
def gen_uuid() -> str: ...
class CAB:
name: str
files: list[tuple[str, str]]
filenames: set[str]
index: int
def __init__(self, name: str) -> None: ...
def gen_id(self, file: str) -> str: ...
def append(self, full: str, file: str, logical: str) -> tuple[int, str]: ...
def commit(self, db: _Database) -> None: ...
_directories: set[str]
class Directory:
db: _Database
cab: CAB
basedir: str
physical: str
logical: str
component: str | None
short_names: set[str]
ids: set[str]
keyfiles: dict[str, str]
componentflags: int | None
absolute: str
def __init__(
self,
db: _Database,
cab: CAB,
basedir: str,
physical: str,
_logical: str,
default: str,
componentflags: int | None = None,
) -> None: ...
def start_component(
self,
component: str | None = None,
feature: Feature | None = None,
flags: int | None = None,
keyfile: str | None = None,
uuid: str | None = None,
) -> None: ...
def make_short(self, file: str) -> str: ...
def add_file(self, file: str, src: str | None = None, version: str | None = None, language: str | None = None) -> str: ...
def glob(self, pattern: str, exclude: Container[str] | None = None) -> list[str]: ...
def remove_pyc(self) -> None: ...
class Binary:
name: str
def __init__(self, fname: str) -> None: ...
class Feature:
id: str
def __init__(
self,
db: _Database,
id: str,
title: str,
desc: str,
display: int,
level: int = 1,
parent: Feature | None = None,
directory: str | None = None,
attributes: int = 0,
) -> None: ...
def set_current(self) -> None: ...
class Control:
dlg: Dialog
name: str
def __init__(self, dlg: Dialog, name: str) -> None: ...
def event(self, event: str, argument: str, condition: str = "1", ordering: int | None = None) -> None: ...
def mapping(self, event: str, attribute: str) -> None: ...
def condition(self, action: str, condition: str) -> None: ...
class RadioButtonGroup(Control):
property: str
index: int
def __init__(self, dlg: Dialog, name: str, property: str) -> None: ...
def add(self, name: str, x: int, y: int, w: int, h: int, text: str, value: str | None = None) -> None: ...
class Dialog:
db: _Database
name: str
x: int
y: int
w: int
h: int
def __init__(
self,
db: _Database,
name: str,
x: int,
y: int,
w: int,
h: int,
attr: int,
title: str,
first: str,
default: str,
cancel: str,
) -> None: ...
def control(
self,
name: str,
type: str,
x: int,
y: int,
w: int,
h: int,
attr: int,
prop: str | None,
text: str | None,
next: str | None,
help: str | None,
) -> Control: ...
def text(self, name: str, x: int, y: int, w: int, h: int, attr: int, text: str | None) -> Control: ...
def bitmap(self, name: str, x: int, y: int, w: int, h: int, text: str | None) -> Control: ...
def line(self, name: str, x: int, y: int, w: int, h: int) -> Control: ...
def pushbutton(
self, name: str, x: int, y: int, w: int, h: int, attr: int, text: str | None, next: str | None
) -> Control: ...
def radiogroup(
self, name: str, x: int, y: int, w: int, h: int, attr: int, prop: str | None, text: str | None, next: str | None
) -> RadioButtonGroup: ...
def checkbox(
self, name: str, x: int, y: int, w: int, h: int, attr: int, prop: str | None, text: str | None, next: str | None
) -> Control: ...