Update: use PowerShell script PythonEmbed4Win.ps1.
The instructions in this gist have some subtle problems and this gist will not be updated.
#include<stdio.h> | |
#include <gl/glut.h> | |
#define KEY_ESC 27 /* GLUT doesn't supply this */ | |
int fullscreen = 0; | |
int mouseDown = 0; | |
float xrot = 100.0f; | |
float yrot = -100.0f; |
import ttkbootstrap.localization | |
ttkbootstrap.localization.initialize_localities = bool |
import shutil, textwrap, time, contextlib, threading | |
from colorama import * | |
def fmtSize(byt): | |
if byt < 1: | |
return '%f b'%byt*8 | |
elif byt < 1_000: | |
return '%f B'%byt | |
elif byt < 1_000_000: |
The instructions in this gist have some subtle problems and this gist will not be updated.
print("this is a test") # seriously! nothing here |