Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/a/l/alarmist-HEAD/ThinkPadShockSensor.py   alarmist(Download)
import ctypes
from BaseSensor import BaseSensor
from AlarmistExceptions import WrongOptionsError, NotSupportedError
 
class SensorData(ctypes.Structure):
			self.delay = options[1]
		except:
			raise WrongOptionsError('ThinkPadShockSensor')
 
		try:

src/a/l/alarmist-HEAD/WXTaskbarUI.py   alarmist(Download)
import wx
import string
from BaseUI import BaseUI
from threading import Thread
from AlarmistExceptions import WrongOptionsError
		if (options[0]):
			if not self.RegisterHotKey(ID_HOTKEY, options[1], options[2]):
				raise WrongOptionsError('WXTaskbarUI')
		self.Show(True)
 
	def __init__(self, options, toggleCallback, exitCallback, initState):
		try:
			options[0] and options[1] and options[2]
		except:
			raise WrongOptionsError('WXTaskbarUI')