frameworkIdentifier="com.apple.iokit",
frameworkPath=objc.pathForFramework("/System/Library/Frameworks/IOKit.framework"),
globals=globals())
- objc.loadBundleFunctions(bundle, globals(), [("IOPMAssertionCreateWithName", b"i@I@o^I")])
- objc.loadBundleFunctions(bundle, globals(), [("IOPMAssertionRelease", b"iI")])
+ foo = objc.loadBundleFunctions(bundle, globals(), [("IOPMAssertionCreateWithName", b"i@I@o^I")])
+ foo = objc.loadBundleFunctions(bundle, globals(), [("IOPMAssertionRelease", b"iI")])
def preventComputerFromSleeping(frame, prevent):
if prevent:
success, preventComputerFromSleeping.assertionID = IOPMAssertionCreateWithName(kIOPMAssertionTypeNoDisplaySleep, kIOPMAssertionLevelOn, "Cura is printing", None)
from OpenGL.GLU import *
from OpenGL.GL import *
from OpenGL.GL import shaders
-glutInit() #Hack; required before glut can be called. Not required for all OS.
+
+foo = glutInit() #Hack; required before glut can be called. Not required for all OS.
class GLReferenceCounter(object):
def __init__(self):
try:
import comtypes.client as cc
- cc.GetModule('taskbarlib.tlb')
+ foo = cc.GetModule('taskbarlib.tlb')
import comtypes.gen.TaskbarLib as tbl
ITaskbarList3 = cc.CreateObject("{56FDF344-FD6D-11d0-958A-006097C9A090}", interface=tbl.ITaskbarList3)
- ITaskbarList3.HrInit()
+ foo = ITaskbarList3.HrInit()
#Stops displaying progress and returns the button to its normal state. Call this method with this flag to dismiss the progress bar when the operation is complete or canceled.
TBPF_NOPROGRESS = 0x00000000