Package dsc_suite :: Package gui :: Module generator
[hide private]
[frames] | no frames]

Module generator

source code

Module generator This module is used to run the optimization algorithms. It provides the class Generator and starts a new thread. The priority of the thread can be set by an global function in this module. (needed modules: win32api, win32process ,win32con) The interface between the Generator and the DSC is based on dictionaries.


Author: Tobias Heimpold @version 2.0

Classes [hide private]
  Generator
class Generator(threading.Thread) This class inherits the class Thread from the Python module threading.
Functions [hide private]
 
setpriority(pid=None, priority=1)
Set The Priority of a Windows Process.
source code
Variables [hide private]
  __package__ = 'dsc_suite.gui'
Function Details [hide private]

setpriority(pid=None, priority=1)

source code 

Set The Priority of a Windows Process. Priority is a value between 0-5 where 2 is normal priority. Default sets the priority of the current python process but can take any valid process ID. Recipe 496767 from ActiveState Code