using System; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Windows.Forms; namespace Aping.Common.Windows.Forms { public partial class CutImageBox : System.Windows.Forms.PictureBox { public CutImageBox() {
def TIMEOUT_COMMAND(command, timeout): """call shell-command and either return its output or kill it if it doesn't normally exit within timeout seconds and return None""" import subprocess, datetime, os, time, signal,sys cmd