Skip to content

Commit

Permalink
rename lib
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Aug 30, 2024
1 parent 61a3985 commit 3419c9a
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions winforms/src/toga_winforms/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from comtypes import GUID
from comtypes.hresult import S_OK

from toga_winforms.libs.win_wrappers.com.interfaces import (
from toga_winforms.libs.py_wrappers.com.interfaces import (
COMDLG_FILTERSPEC,
CLSID_FileOpenDialog,
CLSID_FileSaveDialog,
Expand All @@ -31,7 +31,7 @@
IShellItem,
IShellItemArray,
)
from toga_winforms.libs.win_wrappers.hwnd import (
from toga_winforms.libs.py_wrappers.hwnd import (
ES_AUTOVSCROLL,
ES_MULTILINE,
ES_READONLY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from comtypes import COMObject

from toga_winforms.libs.win_wrappers.hresult import HRESULT
from toga_winforms.libs.py_wrappers.hresult import HRESULT

if TYPE_CHECKING:
from ctypes import _NamedFuncPointer
Expand Down Expand Up @@ -110,8 +110,8 @@ def register_idispatch_object(
import comtypes
from comtypes import GUID

from toga_winforms.libs.win_wrappers.com.interfaces import SIGDN
from toga_winforms.libs.win_wrappers.hresult import S_OK
from toga_winforms.libs.py_wrappers.com.interfaces import SIGDN
from toga_winforms.libs.py_wrappers.hresult import S_OK
try:
from win32com.shell import shell # pyright: ignore[reportMissingModuleSource]
except ModuleNotFoundError:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
GUID,
)

from toga_winforms.libs.win_wrappers.hresult import ( # pyright: ignore[reportMissingTypeStubs]
from toga_winforms.libs.py_wrappers.hresult import ( # pyright: ignore[reportMissingTypeStubs]
HRESULT,
S_OK,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
from comtypes.gen import Shell32
from utility.logger_util import RobustRootLogger

from toga_winforms.libs.win_wrappers.com.interfaces import (
from toga_winforms.libs.py_wrappers.com.interfaces import (
CLSID_FileOperation,
IFileOperationProgressSink,
)
from toga_winforms.libs.win_wrappers.hresult import S_OK
from toga_winforms.libs.py_wrappers.hresult import S_OK

if TYPE_CHECKING:
from typing_extensions import Literal
Expand Down
10 changes: 5 additions & 5 deletions winforms/src/toga_winforms/libs/py_wrappers/com/windialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
from utility.logger_util import RobustRootLogger
from utility.system.path import WindowsPath

from toga_winforms.libs.win_wrappers.com.com_helpers import HandleCOMCall
from toga_winforms.libs.win_wrappers.com.com_types import GUID
from toga_winforms.libs.win_wrappers.com.interfaces import (
from toga_winforms.libs.py_wrappers.com.com_helpers import HandleCOMCall
from toga_winforms.libs.py_wrappers.com.com_types import GUID
from toga_winforms.libs.py_wrappers.com.interfaces import (
COMDLG_FILTERSPEC,
SFGAO,
SIGDN,
Expand All @@ -31,13 +31,13 @@
IID_IFileDialogCustomize,
IShellItem,
)
from toga_winforms.libs.win_wrappers.hresult import HRESULT, S_OK
from toga_winforms.libs.py_wrappers.hresult import HRESULT, S_OK

if TYPE_CHECKING:
from ctypes import Array, _FuncPointer, _Pointer
from ctypes.wintypes import BOOL, DWORD, LPWSTR

from toga_winforms.libs.win_wrappers.com.interfaces import IFileDialog, IShellItemArray
from toga_winforms.libs.py_wrappers.com.interfaces import IFileDialog, IShellItemArray


class FileDialogControlEvents(comtypes.COMObject):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import comtypes # pyright: ignore[reportMissingTypeStubs]
import comtypes.client # pyright: ignore[reportMissingTypeStubs]

from toga_winforms.libs.win_wrappers.hwnd import SimplePyHWND
from toga_winforms.libs.py_wrappers.hwnd import SimplePyHWND

if TYPE_CHECKING:
import os
Expand Down
2 changes: 1 addition & 1 deletion winforms/src/toga_winforms/libs/py_wrappers/hwnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ctypes import POINTER, WINFUNCTYPE, Structure, c_int, c_wchar_p, windll, c_long, c_uint, c_void_p
from ctypes.wintypes import ATOM, BOOL, DWORD, HBRUSH, HICON, HINSTANCE, HMENU, HWND, LPARAM, LPCWSTR, LPVOID, UINT, WPARAM

from toga_winforms.libs.win_wrappers.common import LRESULT
from toga_winforms.libs.py_wrappers.common import LRESULT
from enum import IntEnum
from typing import TYPE_CHECKING, Sequence

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from ctypes import POINTER, WINFUNCTYPE, Structure, c_int, c_wchar_p, windll
from ctypes.wintypes import ATOM, BOOL, DWORD, HBRUSH, HICON, HINSTANCE, HMENU, HWND, LPARAM, LPCWSTR, LPVOID, UINT, WPARAM

from toga_winforms.libs.win_wrappers.common import LRESULT
from toga_winforms.libs.win_wrappers.hwnd import HCURSOR
from toga_winforms.libs.py_wrappers.common import LRESULT
from toga_winforms.libs.py_wrappers.hwnd import HCURSOR


def windows_message_box( # noqa: PLR0913
Expand Down

0 comments on commit 3419c9a

Please sign in to comment.