Skip to content

Commit

Permalink
CI Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh committed Sep 7, 2024
1 parent f7d2b37 commit 4c627f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
if [ "$RUNNER_OS" == "Windows" ]; then
pip install winrt-Windows.UI.ViewManagement winrt-Windows.UI
if [[ "$RUNNER_OS" == "Windows" ]]; then
python -m pip install winrt-Windows.UI.ViewManagement winrt-Windows.UI
fi
- name: Checking our Python imports.
run: |
cd example
python -c "import breeze_theme; print(breeze_theme.get_theme())"
scripts/theme.sh
# TODO: Restore
#scripts/theme.sh
13 changes: 6 additions & 7 deletions example/breeze_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,12 @@ def _get_theme_macos_impl() -> ThemeFn:
assert obc_name is not None
objc = ctypes.cdll.LoadLibrary(obc_name)

# TODO: Restpre
# # See https://docs.python.org/3/library/ctypes.html#function-prototypes for arguments description
# msg_prototype = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p)
# msg = msg_prototype(('objc_msgSend', objc), ((1, '', None), (1, '', None), (1, '', None)))
# auto_release_pool = _get_class(objc, 'NSAutoreleasePool')
# user_defaults = _get_class(objc, 'NSUserDefaults')
# ns_string = _get_class(objc, 'NSString')
# See https://docs.python.org/3/library/ctypes.html#function-prototypes for arguments description
msg_prototype = ctypes.CFUNCTYPE(ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p)
msg = msg_prototype(('objc_msgSend', objc), ((1, '', None), (1, '', None), (1, '', None)))
auto_release_pool = _get_class(objc, 'NSAutoreleasePool')
user_defaults = _get_class(objc, 'NSUserDefaults')
ns_string = _get_class(objc, 'NSString')

def get_theme_func() -> Theme:
'''Get the theme with all our internal helpers.'''
Expand Down

0 comments on commit 4c627f7

Please sign in to comment.