id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,288,400 | beep_example.py | zimolab_PyGUIAdapter/examples/beep_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter import ubeep
def beep_example(beep: bool):
if beep:
ubeep.beep()
if __name__ == "__main__":
adapter = GUIAdapter()
adapter.add(beep_example)
adapter.run()
| 253 | Python | .py | 9 | 24 | 43 | 0.7 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,401 | uinput_custom_dialog_example.py | zimolab_PyGUIAdapter/examples/uinput_custom_dialog_example.py | import dataclasses
from datetime import date
from typing import Optional, Tuple
from qtpy.QtWidgets import QWidget, QLineEdit, QTextEdit, QDateEdit
from qtpy.uic import loadUi
from pyguiadapter.adapter import uinput, GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import text... | 4,446 | Python | .py | 114 | 30.842105 | 100 | 0.644944 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,402 | equation_solver_2.py | zimolab_PyGUIAdapter/examples/equation_solver_2.py | from typing import Optional
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.exceptions import ParameterError
from pyguiadapter.windows.fnexec import FnExecuteWindowConfig
def equation_solver_2(
a: float = 1.0, b: float = 0.0, c: float = 0.0
) -> Optio... | 1,446 | Python | .py | 42 | 28.547619 | 77 | 0.616052 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,403 | udialog_text_messagebox_example.py | zimolab_PyGUIAdapter/examples/udialog_text_messagebox_example.py | import os.path
from typing import Literal
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter import udialog
from pyguiadapter.exceptions import ParameterError
from pyguiadapter.extend_types import text_t, file_t
from pyguiadapter.utils import messagebox
def show_text_context_example(
content: ... | 1,737 | Python | .py | 51 | 27.843137 | 91 | 0.656325 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,404 | exclusive_actions_example.py | zimolab_PyGUIAdapter/examples/exclusive_actions_example.py | import qdarktheme
from pyguiadapter.action import Action
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.menu import Menu
from pyguiadapter.windows.fnselect import FnSelectWindow
def exclusive_action_example():
pass
def on_app_start(app):
qdarktheme.setup_theme("auto")
def on_action_auto(wi... | 1,299 | Python | .py | 43 | 26.302326 | 74 | 0.728006 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,405 | qtmodern_example.py | zimolab_PyGUIAdapter/examples/qtmodern_example.py | from datetime import datetime
from qtpy.QtWidgets import QApplication
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.extend_types import text_t
def app_style_example(
arg1: str, arg2: int, arg3: float, arg4: bool, arg5: text_t, arg6: datetime
):
"""
This example requires [qtmodern](https:... | 1,102 | Python | .py | 35 | 26.514286 | 79 | 0.696768 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,406 | docstring_as_document_example.py | zimolab_PyGUIAdapter/examples/docstring_as_document_example.py | from pyguiadapter.adapter import GUIAdapter
def function_1(arg1: int, arg2: str, arg3: bool):
"""
### Description
This is the document of the **function_1**. And by default this document will automatically
appear in the `document area`.
The format of the document is **Markdown** by default. The *... | 714 | Python | .py | 24 | 24.916667 | 106 | 0.6261 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,407 | progressbar_example.py | zimolab_PyGUIAdapter/examples/progressbar_example.py | import time
from pyguiadapter.adapter import GUIAdapter, udialog
from pyguiadapter.adapter import uprogress
from pyguiadapter.adapter.ucontext import is_function_cancelled
from pyguiadapter.adapter.uoutput import uprint
def progressbar_example(total: int = 100, delay: float = 0.5):
"""
example for **progress... | 1,392 | Python | .py | 39 | 29 | 77 | 0.66147 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,408 | html_file_document_example.py | zimolab_PyGUIAdapter/examples/html_file_document_example.py | from pyguiadapter import utils
from pyguiadapter.adapter import GUIAdapter
def function_3(arg1: int, arg2: str, arg3: bool):
"""
@param arg1:
@param arg2:
@param arg3:
@return:
"""
pass
if __name__ == "__main__":
adapter = GUIAdapter()
html_doc = utils.read_text_file("document.h... | 415 | Python | .py | 15 | 23.4 | 70 | 0.663291 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,409 | fn_execute_window_config_example.py | zimolab_PyGUIAdapter/examples/fn_execute_window_config_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.windows.fnexec import FnExecuteWindowConfig
def function_1(arg1: int, arg2: str, arg3: bool) -> None:
pass
def function_2(arg1: int, arg2: str, arg3: bool) -> None:
pass
if __name__ == "__main__":
adapter = GUIAdapter()
adapter.add(
... | 848 | Python | .py | 27 | 23.962963 | 61 | 0.625767 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,410 | global_style_example_3.py | zimolab_PyGUIAdapter/examples/global_style_example_3.py | import os.path
from datetime import datetime
from qtpy.QtWidgets import QApplication
from pyguiadapter import utils
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.extend_types import text_t
def app_style_example(
arg1: str, arg2: int, arg3: float, arg4: bool, arg5: text_t, arg6: datetime
):
""... | 1,092 | Python | .py | 27 | 35.666667 | 95 | 0.705213 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,411 | bool_example.py | zimolab_PyGUIAdapter/examples/widgets/bool_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import BoolBoxConfig
def bool_example(
bool_arg1: bool = False, bool_arg2: bool = True, bool_arg3: bool = False
):
"""
example for type **bool** and **BoolBox** widget
@param bool_arg... | 1,684 | Python | .py | 48 | 29.229167 | 105 | 0.656423 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,412 | float_t_example.py | zimolab_PyGUIAdapter/examples/widgets/float_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import float_t
from pyguiadapter.widgets import FloatLineEditConfig
def float_t_example(arg1: float_t, arg2: float_t, arg3: float_t = 100) -> float:
"""
This is an example for **float_t**... | 1,297 | Python | .py | 45 | 23.222222 | 80 | 0.646253 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,413 | literal_example.py | zimolab_PyGUIAdapter/examples/widgets/literal_example.py | from typing import Literal
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import ExclusiveChoiceBoxConfig
class MyObj(object):
def __init__(self, name: str):
self._name = name
def __str__(self):
return self._name
def... | 1,657 | Python | .py | 52 | 25.961538 | 83 | 0.628931 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,414 | dict_example.py | zimolab_PyGUIAdapter/examples/widgets/dict_example.py | from typing import Dict, Mapping, MutableMapping, TypedDict
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import DictEditConfig
class User(TypedDict):
name: str
age: int
address: str
email: str
def dict_example(
arg1: dict,... | 1,674 | Python | .py | 60 | 21.583333 | 80 | 0.575985 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,415 | plain_dict_t_example.py | zimolab_PyGUIAdapter/examples/widgets/plain_dict_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import PlainDictEditConfig
from pyguiadapter.extend_types import plain_dict_t
def plain_dict_t_example(arg1: plain_dict_t, arg2: plain_dict_t, arg3: plain_dict_t):
"""
This is an example for t... | 1,448 | Python | .py | 43 | 26.837209 | 88 | 0.604435 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,416 | key_sequence_t_example.py | zimolab_PyGUIAdapter/examples/widgets/key_sequence_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import key_sequence_t
from pyguiadapter.widgets import KeySequenceEditConfig, KeySequenceEdit
def key_sequence_t_example(
arg1: key_sequence_t,
arg2: key_sequence_t,
arg3: key_sequenc... | 1,118 | Python | .py | 34 | 28 | 92 | 0.693309 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,417 | float_example.py | zimolab_PyGUIAdapter/examples/widgets/float_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import FloatSpinBoxConfig
def float_example(float_arg1: float, float_arg2: float, float_arg3: float = 3.14):
"""
example for **float** and **FloatSpinBox**
@param float_arg1: this paramet... | 1,498 | Python | .py | 43 | 27.744186 | 101 | 0.617993 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,418 | enum_example.py | zimolab_PyGUIAdapter/examples/widgets/enum_example.py | from enum import Enum
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.utils import qta_icon
from pyguiadapter.widgets import EnumSelectConfig
class Weekday(Enum):
MONDAY = 1
TUESDAY = 2
WEDNESDAY = 3
THURSDAY = 4
FRIDAY = 5
SATURDAY... | 1,776 | Python | .py | 50 | 29.32 | 81 | 0.64119 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,419 | string_list_t_example.py | zimolab_PyGUIAdapter/examples/widgets/string_list_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import StringListEditConfig
from pyguiadapter.extend_types import string_list_t
def string_list_t_example(
arg1: string_list_t,
arg2: string_list_t,
arg3: string_list_t,
):
"""
Thi... | 1,097 | Python | .py | 33 | 28.727273 | 90 | 0.678977 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,420 | int_dail_t_example.py | zimolab_PyGUIAdapter/examples/widgets/int_dail_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import int_dial_t
from pyguiadapter.widgets import DialConfig
def int_dial_t_example(
arg1: int_dial_t, arg2: int_dial_t, arg3: int_dial_t = 100
) -> int:
"""
This is an example for *... | 1,144 | Python | .py | 41 | 22.926829 | 72 | 0.64652 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,421 | tuple_example.py | zimolab_PyGUIAdapter/examples/widgets/tuple_example.py | from typing import Tuple
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import TupleEditConfig
def tuple_example(arg1: tuple, arg2: Tuple, arg3: tuple):
"""
This is an example for **TupleEdit** and **tuple** types
Args:
arg1:... | 1,135 | Python | .py | 41 | 21.146341 | 77 | 0.590616 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,422 | int_slider_t_example.py | zimolab_PyGUIAdapter/examples/widgets/int_slider_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import int_slider_t
from pyguiadapter.widgets import SliderConfig
from pyguiadapter.widgets.extend.slider import TickPosition
def int_slider_t_example(
arg1: int_slider_t, arg2: int_slider_t,... | 1,386 | Python | .py | 50 | 22.36 | 76 | 0.649321 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,423 | file_t_example.py | zimolab_PyGUIAdapter/examples/widgets/file_t_example.py | import os.path
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import FileSelectConfig
from pyguiadapter.extend_types import file_t
def file_t_example(arg1: file_t, arg2: file_t, arg3: file_t):
"""
This is an example for type **file_t** ty... | 1,174 | Python | .py | 35 | 28.428571 | 86 | 0.665782 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,424 | time_example.py | zimolab_PyGUIAdapter/examples/widgets/time_example.py | from datetime import time
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import TimeEditConfig, TimeEdit
from pyguiadapter.widgets.basic.datetimeedit import TimeSpec
def time_example(arg1: time, arg2: time, arg3: time):
"""
This is an exa... | 1,292 | Python | .py | 42 | 24.690476 | 67 | 0.652068 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,425 | text_t_example.py | zimolab_PyGUIAdapter/examples/widgets/text_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import text_t
from pyguiadapter.widgets import TextEditConfig
def text_t_example(arg1: text_t, arg2: text_t, arg3: text_t = "foo") -> str:
"""
This is an example for **text_t** type hint ... | 1,112 | Python | .py | 36 | 25.5 | 76 | 0.654649 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,426 | py_literal_edit_example.py | zimolab_PyGUIAdapter/examples/widgets/py_literal_edit_example.py | from typing import Any, Union
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import PyLiteralEditConfig
def py_literal_example(arg1: Any, arg2: object, arg3: Union[int, str]):
"""
This is an example of **PyLiteralEdit** widget and **Any**... | 1,301 | Python | .py | 39 | 27.128205 | 91 | 0.614833 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,427 | choices_t_example.py | zimolab_PyGUIAdapter/examples/widgets/choices_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import choices_t
from pyguiadapter.widgets import MultiChoiceBoxConfig
class MyObject(object):
def __init__(self, name: str):
self.name = name
def __eq__(self, other):
if... | 1,679 | Python | .py | 52 | 25.692308 | 86 | 0.60953 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,428 | int_example.py | zimolab_PyGUIAdapter/examples/widgets/int_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import IntSpinBoxConfig
def int_example(arg1: int, arg2: int, arg3: int = 100) -> int:
"""
A simple example for **int** and **IntSpinBox**
@param arg1: description for arg1
@param arg... | 1,095 | Python | .py | 39 | 22.102564 | 83 | 0.620459 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,429 | files_t_example.py | zimolab_PyGUIAdapter/examples/widgets/files_t_example.py | import os.path
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import MultiFileSelectConfig
from pyguiadapter.extend_types import files_t
def files_t_example(arg1: files_t, arg2: files_t, arg3: files_t):
"""
This is an example for type **f... | 1,174 | Python | .py | 34 | 29.294118 | 87 | 0.666961 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,430 | directory_t_example.py | zimolab_PyGUIAdapter/examples/widgets/directory_t_example.py | import os.path
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import directory_t, dir_t
from pyguiadapter.widgets import DirSelectConfig
def directory_t_example(arg1: directory_t, arg2: directory_t, arg3: dir_t):
"""
This is an examp... | 1,169 | Python | .py | 35 | 28.285714 | 94 | 0.672291 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,431 | color_t_example.py | zimolab_PyGUIAdapter/examples/widgets/color_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import color_t
from pyguiadapter.widgets import ColorPickerConfig
def color_t_example(arg1: color_t, arg2: color_t, arg3: color_t = "red"):
"""
example for type **color_t** and **ColorPic... | 1,072 | Python | .py | 34 | 26.117647 | 78 | 0.65407 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,432 | datetime_example.py | zimolab_PyGUIAdapter/examples/widgets/datetime_example.py | from datetime import datetime
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import DateTimeEditConfig, DateTimeEdit
def datetime_example(arg1: datetime, arg2: datetime, arg3: datetime):
"""
This an example for **DateTimeEdit** widget and... | 1,316 | Python | .py | 44 | 23.522727 | 70 | 0.635788 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,433 | json_object_t_example.py | zimolab_PyGUIAdapter/examples/widgets/json_object_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import JsonEditConfig
from pyguiadapter.extend_types import json_obj_t
def json_obj_t_example(arg1: json_obj_t, arg2: json_obj_t, arg3: json_obj_t):
"""
This is an example for type **json_obj_... | 1,129 | Python | .py | 31 | 31.290323 | 83 | 0.642202 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,434 | int_t_example.py | zimolab_PyGUIAdapter/examples/widgets/int_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import int_t
from pyguiadapter.widgets import IntLineEditConfig
def int_t_example(arg1: int_t, arg2: int_t, arg3: int_t = 100) -> int:
"""
This is an example for **int_t** type hint and *... | 1,211 | Python | .py | 43 | 22.744186 | 74 | 0.644214 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,435 | color_hex_t_example.py | zimolab_PyGUIAdapter/examples/widgets/color_hex_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import color_hex_t
from pyguiadapter.widgets import ColorPickerConfig
def color_hex_t_example(
arg1: color_hex_t,
arg2: color_hex_t,
arg3: color_hex_t = "red",
):
"""
This is ... | 1,005 | Python | .py | 31 | 28 | 85 | 0.68905 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,436 | choice_t_example.py | zimolab_PyGUIAdapter/examples/widgets/choice_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import choice_t
from pyguiadapter.widgets import ChoiceBoxConfig
class MyObject(object):
def __init__(self, name: str):
self.name = name
def __eq__(self, other):
if not i... | 2,147 | Python | .py | 62 | 28.403226 | 93 | 0.618656 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,437 | date_example.py | zimolab_PyGUIAdapter/examples/widgets/date_example.py | from datetime import date
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import DateEditConfig, DateEdit
def date_example(arg1: date, arg2: date, arg3: date):
"""
This is an example for **DateEdit** and **date** type.
Args:
ar... | 1,158 | Python | .py | 41 | 22.268293 | 62 | 0.625789 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,438 | str_example.py | zimolab_PyGUIAdapter/examples/widgets/str_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import LineEditConfig, LineEdit
def str_example(
str_arg1: str = "arg1",
str_arg2: str = "arg2",
str_arg3: str = "arg3",
str_arg4: str = "arg4",
str_arg5: str = "arg5",
):
"""
... | 1,989 | Python | .py | 59 | 28 | 101 | 0.651879 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,439 | set_example.py | zimolab_PyGUIAdapter/examples/widgets/set_example.py | from typing import Set, MutableSet
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import SetEditConfig
def set_example(arg1: set, arg2: Set, arg3: MutableSet):
"""
This is an example for **SetEdit** for **set** types.
Args:
a... | 1,001 | Python | .py | 37 | 20.783784 | 57 | 0.579937 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,440 | color_tuple_t_example.py | zimolab_PyGUIAdapter/examples/widgets/color_tuple_t_example.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.extend_types import color_tuple_t
from pyguiadapter.widgets import ColorPickerConfig
def color_tuple_t_example(
arg1: color_tuple_t,
arg2: color_tuple_t,
arg3: color_tuple_t = (125, 230, 156),
):
... | 1,038 | Python | .py | 31 | 29.064516 | 87 | 0.688312 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,441 | list_example.py | zimolab_PyGUIAdapter/examples/widgets/list_example.py | from typing import List
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.adapter.uoutput import uprint
from pyguiadapter.widgets import ListEditConfig
def list_example(arg1: list, arg2: List, arg3: list):
"""
This is an example for **ListEdit** and list** types
Args:
arg1: descripti... | 1,013 | Python | .py | 36 | 22.444444 | 77 | 0.613636 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,442 | app.py | zimolab_PyGUIAdapter/examples/packaging/app.py | import os.path
from typing import Optional
from pyguiadapter.action import Action
from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.exceptions import ParameterError
from pyguiadapter.menu import Menu
from pyguiadapter.utils import messagebox
from pyguiadapter.windows.fnexec import FnExecuteWindowConfig, F... | 2,040 | Python | .py | 56 | 30.089286 | 87 | 0.648649 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,443 | snippet_1.py | zimolab_PyGUIAdapter/examples/snippets/snippet_1.py | from pyguiadapter.adapter import GUIAdapter
def f1(a: str, b: int, c: float):
pass
def f2(a=10, b=0.5, c="hello", e=True, f=(1, 2, 3)):
pass
def f3(a, b, c):
"""
这是一个示例函数.
Args:
a (int): 参数a的描述.
b (str): 参数b的描述.
c (list): 参数c的描述.
Returns:
bool: 函数返回的结果描述.
... | 488 | Python | .py | 21 | 15.666667 | 52 | 0.585242 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,444 | snippet_5.py | zimolab_PyGUIAdapter/examples/snippets/snippet_5.py | from pyguiadapter.adapter import GUIAdapter
def foo(a: int = -100, b: int = 1 + 1):
"""
@param a: this is parameter a
@param b: this is parameter b
@return:
"""
adapter = GUIAdapter()
adapter.add(foo)
adapter.run()
| 239 | Python | .py | 10 | 20.5 | 43 | 0.657778 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,445 | snippet_3.py | zimolab_PyGUIAdapter/examples/snippets/snippet_3.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.widgets import IntSpinBoxConfig, FloatSpinBoxConfig, BoolBoxConfig
def foo(a, b, c):
pass
def bar(a, b, c):
"""
bar
@param a:
@param b:
@param c:
@return:
@params
[a]
widget_class = "IntSpinBox"
[b]
widge... | 608 | Python | .py | 30 | 16.233333 | 84 | 0.656085 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,446 | snippet_2.py | zimolab_PyGUIAdapter/examples/snippets/snippet_2.py | from pyguiadapter.widgets import IntSpinBoxConfig, IntSpinBox
print("IntSpinBox.ConfigClass == ", IntSpinBox.ConfigClass)
print(
"IntSpinBoxConfig.target_widget_class() == ", IntSpinBoxConfig.target_widget_class()
)
| 221 | Python | .py | 5 | 42.2 | 88 | 0.804651 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,447 | snippet_4.py | zimolab_PyGUIAdapter/examples/snippets/snippet_4.py | from pyguiadapter.adapter import GUIAdapter
from pyguiadapter.widgets import (
IntSpinBoxConfig,
SliderConfig,
TextEditConfig,
)
def foo(a: int, b: int, c: str = "hello world!"):
pass
def foo2(a: int, b: int, c: str = "hello world!"):
pass
foo_configs = {
"a": IntSpinBoxConfig(
def... | 1,349 | Python | .py | 58 | 17.068966 | 50 | 0.551482 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,448 | snippet_6.py | zimolab_PyGUIAdapter/examples/snippets/snippet_6.py | from pyguiadapter.adapter import GUIAdapter
def foo(a: int, b: int, c: str = "hello world!"):
"""
@params
[a]
widget_class="IntSpinBox"
default_value=1
min_value=0
max_value=10
step=1
label="a"
description="parameter a"
[b]
widget_class="Slider"
default_value=50
... | 1,015 | Python | .py | 52 | 14.865385 | 50 | 0.622246 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,449 | pyguiadapter.widgets.pyliteraledit.md | zimolab_PyGUIAdapter/docs/apis/pyguiadapter.widgets.pyliteraledit.md | ## 控件配置类
::: pyguiadapter.widgets.PyLiteralEditConfig
options:
heading_level: 3
show_root_full_path: false
show_source: true
::: pyguiadapter.widgets.StandaloneCodeEditorConfig
options:
heading_level: 3
show_root_full_path: false
show_source: true
## 控件类
:::... | 599 | Python | .py | 21 | 21.571429 | 69 | 0.664804 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,450 | textbrowser.py | zimolab_PyGUIAdapter/pyguiadapter/textbrowser.py | """
@Time : 2024.10.28
@File : textbrowser.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 实现了通用文本浏览器控件及其配置类。
"""
import dataclasses
import webbrowser
from typing import Optional, Sequence, Union
from urllib.parse import unquote
from qtpy.QtCore import QUrl
from qtpy.QtGui import QTextOption, QColor, Q... | 4,251 | Python | .py | 105 | 31.809524 | 87 | 0.679807 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,451 | window.py | zimolab_PyGUIAdapter/pyguiadapter/window.py | """
@Time : 2024.10.20
@File : window.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 定义了窗口基类,实现了窗口基本的外观和逻辑,并且实现了一些公共的接口方法。
"""
import dataclasses
from abc import abstractmethod
from concurrent.futures import Future
from typing import Tuple, Dict, List, Optional, Union, Sequence, Callable
from qtpy.QtC... | 26,819 | Python | .py | 729 | 23.648834 | 99 | 0.584723 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,452 | bundle.py | zimolab_PyGUIAdapter/pyguiadapter/bundle.py | """
@Time : 2024.10.27
@File : bundle.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 定义了FnBundle类,用于封装函数信息、参数配置、窗口配置、窗口事件监听器、窗口工具栏、窗口菜单等信息。方便传参。仅限于内部使用。
"""
import dataclasses
from typing import Type, Tuple, Dict, Optional, List, Union
from .action import Separator
from .fn import FnInfo
from .menu im... | 1,008 | Python | .py | 26 | 31.692308 | 78 | 0.796512 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,453 | executor.py | zimolab_PyGUIAdapter/pyguiadapter/executor.py | """
@Time : 2024.10.20
@File : executor.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 定义了函数执行器的抽象基类,所有函数执行器都应该继承自该类并实现相应抽象方法。
"""
from abc import abstractmethod
from typing import Any, Dict, Optional
from qtpy.QtCore import QObject
from .fn import FnInfo
class ExecuteStateListener(object):
def... | 1,590 | Python | .py | 49 | 25.326531 | 84 | 0.662976 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,454 | toast.py | zimolab_PyGUIAdapter/pyguiadapter/toast.py | """
@Time : 2024.10.20
@File : toast.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 实现了简单的toast提示框
"""
import dataclasses
from typing import Optional, Union, Tuple, Dict, Sequence
from qtpy.QtCore import Signal, QTimer, QMutex, Qt, QPropertyAnimation
from qtpy.QtWidgets import QWidget, QLabel
from .c... | 5,789 | Python | .py | 153 | 28.594771 | 85 | 0.626977 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,455 | toolbar.py | zimolab_PyGUIAdapter/pyguiadapter/toolbar.py | """
@Time : 2024.10.20
@File : toolbar.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 定义了工具栏配置类和相关常量。
"""
import dataclasses
from typing import Optional, List, Union, Tuple
from qtpy.QtCore import Qt, QSize
from .action import Action, Separator
ToolBarArea = Qt.ToolBarArea
TopToolBarArea = ToolBarAr... | 2,314 | Python | .py | 54 | 31.851852 | 79 | 0.715816 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,456 | fn.py | zimolab_PyGUIAdapter/pyguiadapter/fn.py | """
@Time : 2024.10.20
@File : fn.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 对函数进行了抽象和建模。仅限内部使用。
"""
import dataclasses
from typing import Callable, Literal, Any, Dict, List, Type, Optional, ForwardRef
from .utils import IconType
@dataclasses.dataclass
class ParameterInfo(object):
default_va... | 925 | Python | .py | 28 | 28.464286 | 82 | 0.728019 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,457 | extend_types.py | zimolab_PyGUIAdapter/pyguiadapter/extend_types.py | """
@Time : 2024.10.20
@File : extend_types.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 定义了一些语义化类型。
"""
# noinspection PyPep8Naming
class text_t(str):
pass
# noinspection PyPep8Naming
class int_t(int):
pass
# noinspection PyPep8Naming
class float_t(float):
pass
# noinspection PyPe... | 1,229 | Python | .py | 59 | 17.694915 | 27 | 0.767986 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,458 | menu.py | zimolab_PyGUIAdapter/pyguiadapter/menu.py | """
@Time : 2024.10.20
@File : menu.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 定义菜单配置类
"""
import dataclasses
from typing import List, Union
from .action import Action, Separator
@dataclasses.dataclass(frozen=True)
class Menu(object):
"""该类用于配置窗口菜单栏上的菜单。"""
title: str
"""菜单的标题。"""
... | 1,986 | Python | .py | 41 | 27.585366 | 92 | 0.598753 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,459 | action.py | zimolab_PyGUIAdapter/pyguiadapter/action.py | """
@Time : 2024.10.20
@File : action.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 定义了动作(`Action`)配置类、分割符(`Separator`)类以及相关常量。
"""
import dataclasses
from typing import Optional, Callable, ForwardRef
from qtpy.QtCore import Qt
from qtpy.QtWidgets import QAction
from .utils import IconType
Priority... | 3,855 | Python | .py | 73 | 35.328767 | 96 | 0.741462 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,460 | paramwidget.py | zimolab_PyGUIAdapter/pyguiadapter/paramwidget.py | """
@Time : 2024.10.20
@File : paramwidget.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 定义了参数控件基类和配置基类。
"""
import dataclasses
from abc import abstractmethod
from inspect import isclass
from typing import Any, Type, TypeVar, Optional
from qtpy.QtWidgets import QWidget
from .fn import ParameterInfo
... | 5,751 | Python | .py | 167 | 22.035928 | 81 | 0.621264 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,461 | exceptions.py | zimolab_PyGUIAdapter/pyguiadapter/exceptions.py | """
@Time : 2024.10.20
@File : exceptions.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 自定义异常类。
"""
class ParameterError(Exception):
def __init__(self, parameter_name: str, message: str):
self._parameter_name: str = parameter_name
self._message: str = message
super().__ini... | 1,691 | Python | .py | 51 | 27.54902 | 66 | 0.690194 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,462 | thread.py | zimolab_PyGUIAdapter/pyguiadapter/executors/thread.py | """
@Time : 2024.10.20
@File : thread.py
@Author : zimolab
@Project : PyGUIAdapter
@Desc : 实现了基于线程的函数执行器,是目前的默认实现。
"""
import threading
import traceback
from collections import OrderedDict
from typing import Any, Dict, Optional
from qtpy.QtCore import QObject, QThread, Signal
from ..exceptions import Funct... | 4,868 | Python | .py | 119 | 32.386555 | 81 | 0.648053 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,463 | factory.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/factory.py | import warnings
from typing import Dict, Type, List, Optional, Callable, Union
from .builtin import BUILTIN_WIDGETS_MAP, BUILTIN_WIDGETS_MAPPING_RULES
from ..exceptions import AlreadyRegisteredError
from ..fn import ParameterInfo
from ..paramwidget import (
BaseParameterWidget,
is_parameter_widget_class,
)
fro... | 4,589 | Python | .py | 111 | 32.36036 | 88 | 0.621743 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,464 | __init__.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/__init__.py | from .basic import *
from .extend import *
from .common import CommonParameterWidgetConfig, CommonParameterWidget
from .factory import ParameterWidgetFactory
| 158 | Python | .py | 4 | 38.5 | 70 | 0.87013 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,465 | builtin.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/builtin.py | from datetime import datetime, date, time
from qtpy.QtGui import QColor
from .basic import (
PyLiteralEdit,
PyLiteralType,
DictEdit,
ListEdit,
TupleEdit,
SetEdit,
LineEdit,
IntSpinBox,
FloatSpinBox,
BoolBox,
EnumSelect,
ExclusiveChoiceBox,
DateTimeEdit,
DateEdit... | 3,638 | Python | .py | 153 | 19.732026 | 45 | 0.686404 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,466 | common.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/common.py | import copy
import dataclasses
from abc import abstractmethod
from typing import Any, Type, Optional, Tuple, Sequence
from qtpy.QtCore import Qt, QPropertyAnimation, QEasingCurve, QMimeData, QUrl
from qtpy.QtGui import QDragEnterEvent, QDropEvent
from qtpy.QtGui import QColor
from qtpy.QtWidgets import (
QWidget,
... | 15,967 | Python | .py | 377 | 31.625995 | 113 | 0.653017 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,467 | dictedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/dictedit.py | import dataclasses
from qtpy.QtWidgets import QWidget
from typing import Type, Optional, Any
from .base import StandaloneCodeEditorConfig
from .pyliteraledit import PyLiteralEdit, PyLiteralEditConfig, PyLiteralType
from ... import utils
from ...fn import ParameterInfo
from ...utils import type_check
@dataclasses.da... | 2,329 | Python | .py | 59 | 31.338983 | 84 | 0.668834 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,468 | boolbox.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/boolbox.py | import dataclasses
from qtpy.QtWidgets import QWidget, QButtonGroup, QRadioButton, QVBoxLayout, QHBoxLayout
from typing import Type, Optional, Any
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...utils import IconType, get_icon, type_check
@dataclasses.dataclass(frozen=True)
class Boo... | 3,153 | Python | .py | 74 | 32.594595 | 88 | 0.646482 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,469 | enumselect.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/enumselect.py | import dataclasses
import inspect
from enum import Enum
from qtpy.QtCore import QSize
from qtpy.QtWidgets import QWidget, QComboBox
from typing import Type, Tuple, Union, Optional, Dict, Any
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...fn import ParameterInfo
from ...utils import Ic... | 4,205 | Python | .py | 104 | 30.509615 | 86 | 0.636779 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,470 | exclusivechoice.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/exclusivechoice.py | import dataclasses
from typing import Type, List, Any, Tuple, Optional, Union
from qtpy.QtCore import QSize
from qtpy.QtGui import QIcon
from qtpy.QtWidgets import QWidget, QGridLayout, QRadioButton, QButtonGroup
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...utils import IconType, ge... | 5,071 | Python | .py | 121 | 31.099174 | 75 | 0.619007 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,471 | listedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/listedit.py | import dataclasses
from qtpy.QtWidgets import QWidget
from typing import Type, Optional, Any
from .base import StandaloneCodeEditorConfig
from .pyliteraledit import PyLiteralEdit, PyLiteralEditConfig, PyLiteralType
from ...utils import type_check
@dataclasses.dataclass(frozen=True)
class ListEditConfig(PyLiteralEdi... | 2,127 | Python | .py | 55 | 30.036364 | 84 | 0.654908 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,472 | pyliteraledit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/pyliteraledit.py | import ast
import dataclasses
from pyqcodeeditor.highlighters import QPythonHighlighter
from qtpy.QtWidgets import QWidget
from typing import Type, Optional, Any
from .base import BaseCodeEdit, BaseCodeEditConfig, StandaloneCodeEditorConfig
from ...codeeditor import PythonFormatter
from ...utils import PyLiteralType,... | 2,191 | Python | .py | 57 | 30.22807 | 81 | 0.687718 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,473 | setedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/setedit.py | import dataclasses
from qtpy.QtWidgets import QWidget
from typing import Type, Optional, Any
from .base import StandaloneCodeEditorConfig
from .pyliteraledit import PyLiteralEdit, PyLiteralEditConfig, PyLiteralType
from ...utils import type_check
@dataclasses.dataclass(frozen=True)
class SetEditConfig(PyLiteralEdit... | 2,250 | Python | .py | 60 | 28.7 | 83 | 0.635005 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,474 | tupleedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/tupleedit.py | import dataclasses
from qtpy.QtWidgets import QWidget
from typing import Type, Optional, Any
from .base import StandaloneCodeEditorConfig
from .pyliteraledit import PyLiteralEdit, PyLiteralEditConfig, PyLiteralType
from ...utils import type_check
@dataclasses.dataclass(frozen=True)
class TupleEditConfig(PyLiteralEd... | 2,062 | Python | .py | 53 | 30.358491 | 85 | 0.659799 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,475 | dateedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/dateedit.py | import dataclasses
from datetime import date
from qtpy.QtCore import Qt, QDate
from qtpy.QtWidgets import QWidget, QDateEdit
from typing import Type, Union, Optional, Any
from ..common import (
CommonParameterWidgetConfig,
CommonParameterWidget,
)
from ...utils import type_check
Alignment = Qt.AlignmentFlag
... | 3,818 | Python | .py | 91 | 31.736264 | 153 | 0.669022 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,476 | datetimeedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/datetimeedit.py | import dataclasses
from datetime import datetime
from qtpy.QtCore import Qt, QDateTime
from qtpy.QtWidgets import QWidget, QDateTimeEdit
from typing import Type, Union, Optional, Any
from ..common import (
CommonParameterWidgetConfig,
CommonParameterWidget,
)
from ...utils import type_check
Alignment = Qt.Al... | 4,226 | Python | .py | 99 | 31.89899 | 153 | 0.670027 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,477 | floatspin.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/floatspin.py | import dataclasses
from typing import Type, Optional, Union, Any
from qtpy.QtWidgets import QWidget, QDoubleSpinBox
from ...exceptions import ParameterError
from ...utils import type_check
from ...widgets.common import (
CommonParameterWidgetConfig,
CommonParameterWidget,
)
@dataclasses.dataclass(frozen=Tru... | 2,432 | Python | .py | 62 | 30.806452 | 88 | 0.650481 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,478 | __init__.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/__init__.py | from .base import StandaloneCodeEditorConfig
from .intspin import IntSpinBoxConfig, IntSpinBox
from .boolbox import BoolBoxConfig, BoolBox
from .floatspin import FloatSpinBoxConfig, FloatSpinBox
from .pyliteraledit import (
PyLiteralEdit,
PyLiteralEditConfig,
PyLiteralType,
)
from .dictedit import DictEdit,... | 1,599 | Python | .py | 55 | 25.436364 | 73 | 0.772521 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,479 | timeedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/timeedit.py | import dataclasses
from datetime import time, datetime
from typing import Type, Union, Optional, Any
from qtpy.QtCore import Qt, QTime
from qtpy.QtWidgets import QWidget, QTimeEdit
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...utils import type_check
Alignment = Qt.AlignmentFlag
Tim... | 3,695 | Python | .py | 85 | 33.082353 | 153 | 0.672539 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,480 | base.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/base.py | import dataclasses
import warnings
from abc import abstractmethod
from typing import Type, TypeVar, Callable, Tuple, Optional, Union
from pyqcodeeditor.QCodeEditor import QCodeEditor
from pyqcodeeditor.QStyleSyntaxHighlighter import QStyleSyntaxHighlighter
from qtpy.QtCore import Qt
from qtpy.QtWidgets import QWidget,... | 12,834 | Python | .py | 291 | 32.353952 | 87 | 0.651591 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,481 | intspin.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/intspin.py | import dataclasses
import warnings
from typing import Type, Optional, Union, Any
from qtpy.QtWidgets import QWidget, QSpinBox
from ...utils import type_check
from ...widgets.common import (
CommonParameterWidgetConfig,
CommonParameterWidget,
)
@dataclasses.dataclass(frozen=True)
class IntSpinBoxConfig(Commo... | 2,611 | Python | .py | 69 | 28.652174 | 110 | 0.636552 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,482 | lineedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/basic/lineedit.py | import dataclasses
from qtpy.QtCore import QRegularExpression, Qt
from qtpy.QtGui import QValidator, QRegularExpressionValidator
from qtpy.QtWidgets import QWidget, QLineEdit
from typing import Type, Optional, Union
from ..common import CommonParameterWidget, CommonParameterWidgetConfig
EchoMode = QLineEdit.EchoMod... | 4,328 | Python | .py | 94 | 33.585106 | 84 | 0.6703 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,483 | stringlist.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/stringlist.py | import dataclasses
import os.path
from typing import Type, List, Literal, Optional, Any
from qtpy.QtCore import QStringListModel, Qt
from qtpy.QtWidgets import QWidget, QListView, QVBoxLayout, QPushButton, QMenu, QAction
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ... import utils
fro... | 11,961 | Python | .py | 275 | 31.701818 | 88 | 0.615892 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,484 | choicebox.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/choicebox.py | import dataclasses
from typing import Type, Any, Dict, Optional, Union, Sequence
from qtpy.QtCore import Qt
from qtpy.QtGui import QKeyEvent
from qtpy.QtWidgets import QWidget, QComboBox
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
# noinspection PyPep8Naming
class _FIRST_ITEM(object):
... | 4,752 | Python | .py | 111 | 31.45045 | 119 | 0.634175 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,485 | dial.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/dial.py | import dataclasses
from typing import Type, Optional, Any
from qtpy.QtCore import Qt
from qtpy.QtWidgets import QWidget, QDial, QLabel, QVBoxLayout
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...utils import type_check
@dataclasses.dataclass(frozen=True)
class DialConfig(CommonParam... | 4,209 | Python | .py | 103 | 30.300971 | 81 | 0.625486 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,486 | slider.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/slider.py | import dataclasses
from typing import Type, Optional, Any
from qtpy.QtCore import Qt
from qtpy.QtWidgets import QWidget, QSlider, QLabel, QVBoxLayout
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...utils import type_check
TickPosition = QSlider.TickPosition
@dataclasses.dataclass(fr... | 4,449 | Python | .py | 107 | 30.869159 | 81 | 0.642804 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,487 | multichoice.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/multichoice.py | import dataclasses
from typing import Type, List, Any, Dict, Optional, Union, Sequence
from qtpy.QtWidgets import QWidget, QGridLayout, QCheckBox, QButtonGroup
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
class _CheckBox(QCheckBox):
def __init__(self, parent: Optional[QWidget], user_d... | 3,814 | Python | .py | 84 | 33.47619 | 84 | 0.617232 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,488 | fileselect.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/fileselect.py | import dataclasses
import os
from typing import Type, Any, List, Tuple, Set, Optional, Union, Sequence
from qtpy.QtCore import QMimeData, QUrl
from qtpy.QtWidgets import QWidget
from ._path import PathSelectWidget
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...utils import type_check
... | 7,399 | Python | .py | 186 | 28.327957 | 86 | 0.615315 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,489 | _path.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/_path.py | from typing import List, Tuple, Set, Optional, Union
from qtpy.QtWidgets import QLineEdit, QToolButton, QWidget, QHBoxLayout
from ... import utils
class PathSelectWidget(QWidget):
DEFAULT_SELECT_BUTTON_TEXT = "..."
DEFAULT_FILE_SEPARATOR = ";;"
def __init__(
self,
parent: Optional[QWid... | 4,175 | Python | .py | 103 | 29.776699 | 87 | 0.577388 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,490 | floatedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/floatedit.py | import dataclasses
from typing import Type, Any, Optional
from qtpy.QtGui import QDoubleValidator
from qtpy.QtWidgets import QWidget, QLineEdit
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...exceptions import ParameterError
from ...utils import type_check
@dataclasses.dataclass(froz... | 3,727 | Python | .py | 93 | 28.623656 | 73 | 0.619837 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,491 | dirselect.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/dirselect.py | import dataclasses
from typing import Type, Any, Optional
from qtpy.QtWidgets import QWidget
from ._path import PathSelectWidget
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...utils import type_check
@dataclasses.dataclass(frozen=True)
class DirSelectConfig(CommonParameterWidgetConf... | 2,146 | Python | .py | 56 | 28.857143 | 85 | 0.631764 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,492 | __init__.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/__init__.py | from .choicebox import ChoiceBox, ChoiceBoxConfig
from .multichoice import MultiChoiceBox, MultiChoiceBoxConfig
from .slider import Slider, SliderConfig
from .dial import Dial, DialConfig
from .colorpicker import (
ColorType,
ColorPicker,
ColorPickerConfig,
ColorTuplePicker,
ColorHexPicker,
)
from .... | 1,624 | Python | .py | 60 | 23.25 | 86 | 0.762636 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,493 | jsonedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/jsonedit.py | import dataclasses
import json
from typing import Type, Any, Optional
from pyqcodeeditor.highlighters import QJSONHighlighter
from qtpy.QtWidgets import QWidget
from ..basic.base import BaseCodeEdit, BaseCodeEditConfig, StandaloneCodeEditorConfig
from ...codeeditor import JsonFormatter
JSON_FILE_FILTERS = (
"JSO... | 2,167 | Python | .py | 55 | 31.381818 | 85 | 0.687563 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,494 | keysequenceedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/keysequenceedit.py | import dataclasses
from typing import Type, Union, Optional, Any, Literal, List
from qtpy.QtGui import QKeySequence
from qtpy.QtWidgets import QWidget, QKeySequenceEdit
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...utils import type_check
KeySequenceFormat = QKeySequence.SequenceFor... | 2,959 | Python | .py | 68 | 33.676471 | 90 | 0.661601 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,495 | textedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/textedit.py | import dataclasses
from typing import Type, Any, Optional
from qtpy.QtGui import QTextOption
from qtpy.QtWidgets import QWidget, QTextEdit
from ..common import CommonParameterWidget, CommonParameterWidgetConfig
from ...utils import type_check
LineWrapMode = QTextEdit.LineWrapMode
AutoFormatting = QTextEdit.AutoForma... | 4,127 | Python | .py | 95 | 32.010526 | 79 | 0.664385 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,496 | intedit.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/intedit.py | import dataclasses
from qtpy.QtGui import QIntValidator
from qtpy.QtWidgets import QWidget, QLineEdit
from typing import Type, Any, Optional
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...exceptions import ParameterError
from ...utils import type_check
@dataclasses.dataclass(frozen=... | 3,245 | Python | .py | 78 | 30.487179 | 87 | 0.629593 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,497 | colorpicker.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/colorpicker.py | import dataclasses
from qtpy.QtCore import Qt
from qtpy.QtGui import QColor, QFont
from qtpy.QtWidgets import QWidget, QLabel, QColorDialog, QFrame
from typing import Type, Tuple, Union, Literal, Optional, Any
from ..common import CommonParameterWidgetConfig, CommonParameterWidget
from ...utils import to_qcolor, get_... | 6,033 | Python | .py | 150 | 30.206667 | 81 | 0.630392 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,498 | plaindict.py | zimolab_PyGUIAdapter/pyguiadapter/widgets/extend/plaindict.py | import dataclasses
import json
from collections import OrderedDict
from typing import Type, Dict, Any, List, Tuple, Optional
from pyqcodeeditor.QCodeEditor import QCodeEditor
from pyqcodeeditor.highlighters import QJSONHighlighter
from qtpy.QtCore import Qt, QModelIndex
from qtpy.QtGui import QStandardItemModel, QStan... | 17,063 | Python | .py | 412 | 30.342233 | 87 | 0.607406 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |
2,288,499 | typenames.py | zimolab_PyGUIAdapter/pyguiadapter/parser/typenames.py | import re
import typing
from collections.abc import Mapping, MutableMapping, MutableSet, Set
from .. import utils
TYPE_INT = "int"
TYPE_FLOAT = "float"
TYPE_STR = "str"
TYPE_BOOL = "bool"
TYPE_DICT = "dict"
TYPE_LIST = "list"
TYPE_SET = "set"
TYPE_TUPLE = "tuple"
TYPE_ANY = "any"
TYPE_OBJECT = "object"
TYPE_MAPPING ... | 3,094 | Python | .py | 100 | 26.4 | 76 | 0.672948 | zimolab/PyGUIAdapter | 8 | 0 | 0 | GPL-3.0 | 9/5/2024, 10:48:26 PM (Europe/Amsterdam) |