This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Dark mode for IDLE in Windows 10/11 (hackish proof of concept) | |
Usage: python idle_win_dark.py <some_file.py> | |
This will open <some_file.py> in IDLE, using dark mode for the GUI. | |
Note: the screenshot also uses a custom dark theme inside the editor, | |
which is just a copy of the official "IDLE Dark" theme with all background | |
colors changed to dark grey (#282828), and the font changed to Cascadia Code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import Tk, messagebox, scrolledtext, Menu, END, BOTH | |
from ctypes import windll, byref, sizeof, Structure, POINTER | |
from ctypes.wintypes import (BOOL, DWORD, HDC, HGLOBAL, HINSTANCE, HWND, | |
INT, LONG, LPARAM, LPCWSTR, LPVOID, POINT, RECT, UINT, WORD) | |
######################################## | |
# Used constants | |
######################################## | |
DT_CALCRECT = 1024 | |
LOGPIXELSX = 88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# USAGE: | |
# https://your.domain/path/to/script?h=[some bluesky handle] | |
# https://your.domain/path/to/script?h=[some bluesky handle]&reply=exclude | |
# CONFIG | |
define('BSKY_HANDLE', '<your full bluesky handle>'); | |
define('BSKY_APP_PASSWORD', '<your bluesky app password>'); |