powcshell.desktopwallpaper module#
デスクトップの壁紙。
主なクラスは DesktopWallpaper です。
- class powcshell.desktopwallpaper.DesktopSlideshowDirection(*values)#
ベースクラス:
IntEnumDESKTOP_SLIDESHOW_DIRECTION
- BACKWARD = 1#
- FORWARD = 0#
- class powcshell.desktopwallpaper.DesktopSlideshowOption(*values)#
ベースクラス:
IntFlagDESKTOP_SLIDESHOW_OPTIONS
- SHUFFLE_IMAGES = 1#
- class powcshell.desktopwallpaper.DesktopSlideshowState(*values)#
ベースクラス:
IntFlagDESKTOP_SLIDESHOW_STATE
- DISABLED_BY_REMOTE_SESSION = 4#
- ENABLED = 1#
- SLIDESHOW = 2#
- class powcshell.desktopwallpaper.DesktopWallpaper(o: Any)#
ベースクラス:
objectデスクトップ壁紙の設定。IDesktopWallpaperのラッパーです。
サンプル
>>> from powcshell.desktopwallpaper import DesktopWallpaper >>> >>> wallpaper = DesktopWallpaper.create() >>> >>> print( >>> f""" >>> 壁紙:{wallpaper.get_wallpaper(0)} >>> 表示位置:{wallpaper.position} >>> 背景色:{wallpaper.bgcolor} >>> モニタデバイスパス:{tuple(wallpaper.monitor_device_paths)} >>> """ >>> )
- class SlideshowOptions(options: int | powcshell.desktopwallpaper.DesktopSlideshowState, slideshow_tick: int)#
ベースクラス:
object- options: int | DesktopSlideshowState#
- slideshow_tick: int#
- advance_slideshow_nothrow(monitor_id_or_index: int | str, direction: DesktopSlideshowDirection) ComResult[None]#
- property bgcolor: int#
- static create() DesktopWallpaper#
- get_monitordevicepathat(monitor_index: int) str#
- get_monitorrect(monitor_id_or_index: int | str) RECT#
- get_wallpaper(monitor_id_or_index: str | int) str#
- property monitordevicepathcount: int#
- property monitordevicepaths: Iterator[str]#
- property monitorrects: Iterator[RECT]#
- property position: DesktopWallpaperPosition#
- property position_nothrow: ComResult[DesktopWallpaperPosition]#
- set_enable(value: bool) None#
- set_position_nothrow(value: DesktopWallpaperPosition | int) ComResult[None]#
- set_slideshow_nothrow(value: ShellItemArray) ComResult[None]#
- set_slideshowoptions_nothrow(value: SlideshowOptions) ComResult[None]#
- set_wallpaper(monitor_id_or_index: str | int, wallpaper: str) None#
- property slideshow: ShellItemArray#
- property slideshow_nothrow: ComResult[ShellItemArray]#
- property slideshowoptions: SlideshowOptions#
- property slideshowoptions_nothrow: ComResult[SlideshowOptions]#
- property status: DesktopSlideshowState#
- property status_nothrow: ComResult[DesktopSlideshowState]#
- property wallpapers: Iterator[str]#
- property wrapped_obj: c_void_p#
- class powcshell.desktopwallpaper.DesktopWallpaperPosition(*values)#
ベースクラス:
IntEnumDESKTOP_WALLPAPER_POSITION
- CENTER = 0#
- FILL = 4#
- FIT = 3#
- SPAN = 5#
- STRETCH = 2#
- TILE = 1#
- class powcshell.desktopwallpaper.IDesktopWallpaper#
ベースクラス:
IUnknown- AdvanceSlideshow = <COM method offset 16: WinFunctionType>#
- Enable = <COM method offset 18: WinFunctionType>#
- GetBackgroundColor = <COM method offset 9: WinFunctionType>#
- GetMonitorDevicePathAt = <COM method offset 5: WinFunctionType>#
- GetMonitorDevicePathCount = <COM method offset 6: WinFunctionType>#
- GetMonitorRECT = <COM method offset 7: WinFunctionType>#
- GetPosition = <COM method offset 11: WinFunctionType>#
- GetSlideshow = <COM method offset 13: WinFunctionType>#
- GetSlideshowOptions = <COM method offset 15: WinFunctionType>#
- GetStatus = <COM method offset 17: WinFunctionType>#
- GetWallpaper = <COM method offset 4: WinFunctionType>#
- SetBackgroundColor = <COM method offset 8: WinFunctionType>#
- SetPosition = <COM method offset 10: WinFunctionType>#
- SetSlideshow = <COM method offset 12: WinFunctionType>#
- SetSlideshowOptions = <COM method offset 14: WinFunctionType>#
- SetWallpaper = <COM method offset 3: WinFunctionType>#