Beispiel #1
0
 def __init__(self, editor):
     Signal.__init__(self)
     self.__init_attributes(editor)
     from GUI.Manager import Manager
     Manager(self, editor)
     from TextInserter import Inserter
     Inserter(self, editor)
     from ProcessCommunicator import Communicator
     Communicator(self, editor)
     from SuggestionProcessCommunicator import Communicator
     Communicator(self, editor)
     from TriggerMarker import Marker
     Marker(self, editor)
     from TriggerDetector import Detector
     Detector(self, editor)
     from IndexerProcessManager import Manager
     Manager(self, editor)
     from SuggestionProcessManager import Manager
     Manager(self, editor)
     from IndexRequester import Requester
     Requester(self, editor)
     from DatabaseWriter import Writer
     Writer(self, editor)
     from DatabaseReader import Reader
     Reader(self, editor)
     from DatabaseMonitor import Monitor
     Monitor(self, editor)
Beispiel #2
0
 def __init__(self, editor):
     Signal.__init__(self)
     self.__init_attributes(editor)
     from Feedback import Feedback
     Feedback(self, editor)
     from CursorReseter import Reseter
     Reseter(self, editor)
     from ViewUpdater import Updater
     Updater(self, editor)
     from TextInserter import Inserter
     Inserter(self, editor)
     from CommandExecutor import Executor
     Executor(self, editor)
     from BoundsExtractor import Extractor
     Extractor(self, editor)
     from NewWindowHandler import Handler
     Handler(self, editor)
     from GUI.Manager import Manager
     Manager(self, editor)
     from DatabaseMonitor import Monitor
     Monitor(self, editor)
     from DatabaseWriter import Writer
     Writer(self, editor)
     from DatabaseReader import Reader
     Reader(self, editor)
Beispiel #3
0
 def __init__(self, editor):
     Signal.__init__(self)
     self.__init_attributes(editor)
     from GUI.Manager import Manager
     Manager(self, editor)
     from DatabaseMonitor import Monitor
     Monitor(self, editor)
Beispiel #4
0
 def __init__(self, editor):
     Signal.__init__(self)
     self.__init_attributes(editor)
     from GUI.Manager import Manager
     Manager(self, editor)
     from LineJumper import Jumper
     Jumper(self, editor)
     from Feedback import Feedback
     Feedback(self, editor)
     from Utils import create_bookmark_image
     create_bookmark_image(editor)
     from MarkAdder import Adder
     Adder(self, editor)
     from MarkRemover import Remover
     Remover(self, editor)
     from MarginDisplayer import Displayer
     Displayer(self, editor)
     from DatabaseWriter import Writer
     Writer(self, editor)
     from MarkReseter import Reseter
     Reseter(self, editor)
     from MarkUpdater import Updater
     Updater(self, editor)
     from Marker import Marker
     Marker(self, editor)
     from DatabaseReader import Reader
     Reader(self, editor)
Beispiel #5
0
 def __init__(self, editor):
     Signal.__init__(self)
     self.__init_attributes(editor)
     from ViewUpdater import Updater
     Updater(self, editor)
     from UndoRedoManager import Manager
     Manager(self, editor)
     from Feedback import Feedback
     Feedback(self, editor)
     from PlaceholderColorer import Colorer
     Colorer(self, editor)
     from PlaceholderCursorMonitor import Monitor
     Monitor(self, editor)
     from TextInsertionMonitor import Monitor
     Monitor(self, editor)
     from BoundaryCursorMonitor import Monitor
     Monitor(self, editor)
     from PlaceholderNavigator import Navigator
     Navigator(self, editor)
     from KeyboardHandler import Handler
     Handler(self, editor)
     from PlaceholderRemover import Remover
     Remover(self, editor)
     from PlaceholderSearcher import Searcher
     Searcher(self, editor)
     from MarkManager import Manager
     Manager(self, editor)
     from TemplateInserter import Inserter
     Inserter(self, editor)
     from AbbreviationExpander import Expander
     Expander(self, editor)
     from GUI.Manager import Manager
     Manager(self, editor)
Beispiel #6
0
	def __init__(self, editor):
		Signal.__init__(self)
		self.__init_attributes(editor)
		from GUI.Manager import Manager
		Manager(self, editor)
		from TriggerWidget import TriggerWidget
		self.set_data("TriggerWidget", TriggerWidget(editor))
		from TriggerHandler import Handler
		Handler(self, editor)
		from Positioner import Positioner
		Positioner(self, editor)
		from PropertiesUpdater import Updater
		Updater(self, editor)
		from FullViewHider import Hider
		Hider(self, editor)
		from FullViewActivator import Activator
		Activator(self, editor)
		from DatabaseReader import Reader
		Reader(self, editor)
		from DatabaseWriter import Writer
		Writer(self, editor)
		from DatabaseMonitor import Monitor
		Monitor(self, editor)
		from SyntaxThemeMonitor import Monitor
		Monitor(self, editor)
Beispiel #7
0
	def __init__(self, editor):
		Signal.__init__(self)
		self.__init_attributes(editor)
		from LineJumper import Jumper
		Jumper(self, editor)
		from GUI.Manager import Manager
		Manager(self, editor)
Beispiel #8
0
 def __init__(self, editor):
     Signal.__init__(self)
     self.__init_attributes(editor)
     from Feedback import Feedback
     Feedback(self, editor)
     from GUI.Manager import Manager
     Manager(self, editor)
     from ThemeFileInstaller import Installer
     Installer(self, editor)
     from ThemeFileValidator import Validator
     Validator(self, editor)
     from DatabaseWriter import Writer
     Writer(self, editor)
     from DatabaseReader import Reader
     Reader(self, editor)
     from DatabaseMonitor import Monitor
     Monitor(self, editor)
     from ThemeRemover import Remover
     Remover(self, editor)
     from ThemeUpdater import Updater
     Updater(self, editor)
     from ThemeDispatcher import Dispatcher
     Dispatcher(self, editor)
     from ThemeFolderMonitor import Monitor
     Monitor(self, editor)
Beispiel #9
0
 def __init__(self, editor):
     Signal.__init__(self)
     from KeyboardHandler import Handler
     Handler(self, editor)
     from Switcher import Switcher
     Switcher(self, editor)
     from DatabaseWriter import Writer
     Writer(self, editor)
Beispiel #10
0
 def __init__(self, editor):
     Signal.__init__(self)
     self.__init_attributes(editor)
     from GenericActionHandler import Handler
     Handler(self, editor, self.__zeditor)
     from EditPointHandler import Handler
     Handler(self, editor, self.__zeditor)
     from WrapAbbreviationHandler import Handler
     Handler(self, editor, self.__zeditor)
     from SelectionMarker import Marker
     Marker(self, editor)
Beispiel #11
0
 def __init__(self, editor):
     Signal.__init__(self)
     from BracketRegionMarker import Marker
     Marker(self, editor)
     from FreezeManager import Manager
     Manager(self, editor)
     from TextInserter import Inserter
     Inserter(self, editor)
     from BracketIndenter import Indenter
     Indenter(self, editor)
     from EmptyBracketMonitor import Monitor
     Monitor(self, editor)
Beispiel #12
0
 def __init__(self):
     Signal.__init__(self)
     from ProcessMonitor import Monitor
     Monitor(self)
     from DBusService import DBusService
     DBusService(self)
     from SuggestionGenerator import Generator
     Generator(self)
     from DictionaryUpdater import Updater
     Updater(self)
     self.set_data("WordCompletionSuggestions", [])
     from gobject import timeout_add
     timeout_add(1000, self.__response)
Beispiel #13
0
 def __init__(self, editor):
     Signal.__init__(self)
     from Bindings.Manager import Manager
     Manager(editor)
     from Quiter import Quiter
     Quiter(self, editor)
     from TriggerManager import Manager
     Manager(self, editor)
     from TriggerActivator import Activator
     Activator(self, editor)
     from AcceleratorActivator import Activator
     Activator(self, editor)
     from TriggerRemover import Remover
     Remover(self, editor)
     from Validator import Validator
     Validator(self, editor)
Beispiel #14
0
 def __init__(self, editor):
     Signal.__init__(self)
     from FeedbackManager import Manager
     Manager(self, editor)
     from ModeQuiter import Quiter
     Quiter(self, editor)
     from EventHandler import Handler
     Handler(self, editor)
     from EditPointHandler import Handler
     Handler(self, editor)
     from MarkUpdater import Updater
     Updater(self, editor)
     from TextInsertionHandler import Handler
     Handler(self, editor)
     from TextDeletionHandler import Handler
     Handler(self, editor)
     from ColumnEditPointNavigator import Navigator
     Navigator(self, editor)
Beispiel #15
0
 def __init__(self, editor):
     Signal.__init__(self)
     from Feedback import Feedback
     Feedback(self, editor)
     from BufferFreezer import Freezer
     Freezer(self, editor)
     from RegionSelector import Selector
     Selector(self, editor)
     from CursorPlacer import Placer
     Placer(self, editor)
     from TextInserter import Inserter
     Inserter(self, editor)
     from Commenter import Commenter
     Commenter(self, editor)
     from CommentDecider import Decider
     Decider(self, editor)
     from RegionMarker import Marker
     Marker(self, editor)
Beispiel #16
0
 def __init__(self, editor):
     Signal.__init__(self)
     from Feedback import Feedback
     Feedback(self, editor)
     from UndoManager import Manager
     Manager(self, editor)
     from Selector import Selector
     Selector(self, editor)
     from QuoteCharacterMatcher import Matcher
     Matcher(self, editor)
     from RangeChecker import Checker
     Checker(self, editor)
     from PairCharacterMatcher import Matcher
     Matcher(self, editor)
     from OpenCharacterSearcher import Searcher
     Searcher(self, editor)
     from SelectionChecker import Checker
     Checker(self, editor)
Beispiel #17
0
 def __init__(self, editor):
     Signal.__init__(self)
     from Feedback import Feedback
     Feedback(self, editor)
     from LineJumper import Jumper
     Jumper(self, editor)
     from Checker import Checker
     Checker(self, editor)
     from ProcessCommunicator import Communicator
     Communicator(self, editor)
     from ExternalProcessStarter import Starter
     Starter(self, editor)
     from DatabaseReader import Reader
     Reader(self, editor)
     from DatabaseWriter import Writer
     Writer(self, editor)
     from DatabaseMonitor import Monitor
     Monitor(self, editor)
Beispiel #18
0
 def __init__(self, editor):
     Signal.__init__(self)
     from os.path import join
     self.__gui = editor.get_gui_object(globals(), join("GUI", "GUI.ui"))
     from GUI.Manager import Manager
     Manager(self, editor)
     from FolderEnumerator import Enumerator
     Enumerator(self, editor)
     from FileinfosGenerator import Generator
     Generator(self, editor)
     from PathNavigator import Navigator
     Navigator(self, editor)
     from HistoryManager import Manager
     Manager(self, editor)
     from Feedback import Feedback
     Feedback(self, editor)
     from FolderMonitor import Monitor
     Monitor(self, editor)
     from gobject import idle_add
     idle_add(self.emit, "generate-uris", editor.pwd_uri)
Beispiel #19
0
 def __init__(self):
     Signal.__init__(self)
     from sys import setcheckinterval
     setcheckinterval(SETCHECKINTERVAL)
     from ProcessMonitor import Monitor
     Monitor(self)
     from DBusService import DBusService
     DBusService(self)
     from PyChecker import Checker
     Checker(self)
     from PyLintChecker import Checker
     Checker(self)
     from PyFlakesChecker import Checker
     Checker(self)
     from SyntaxChecker import Checker
     Checker(self)
     from JobSpooler import Spooler
     Spooler(self)
     from gobject import timeout_add
     timeout_add(1000, self.__response)
Beispiel #20
0
 def __init__(self, editor):
     Signal.__init__(self)
     from FeedbackManager import Manager
     Manager(self, editor)
     from BusyManager import Manager
     Manager(self, editor)
     from CursorPositioner import Positioner
     Positioner(self, editor)
     from SelectionManager import Manager
     Manager(self, editor)
     from TextInserter import Inserter
     Inserter(self, editor)
     from MultiLineCommentProcessor import Processor
     Processor(self, editor)
     from SingleLineCommentProcessor import Processor
     Processor(self, editor)
     from BoundaryMarker import Marker
     Marker(self, editor)
     from MarkProcessor import Processor
     Processor(self, editor)
Beispiel #21
0
def get_store_data():
    #get data from cot
    signal1 = Signal(key_rom1, token).get()
    signal2 = Signal(key_rom2, token).get()
    signal3 = Signal(key_rom3, token).get()
    signal4 = Signal(key_rom4, token).get()
    signal5 = Signal(key_rom5, token).get()
    signal6 = Signal(key_rom6, token).get()
    time_now = datetime.now().strftime("%d %H:%M:%S")

    #dagens_strømpris = strømpris("D:\.drivere\geckodriver.exe")
    #dagens_strømpris = dagens_strømpris.get()
    dagens_strømpris = userPowerConsumption().recentPowerPrice()

    #dagens_strømpris = 22.5 # ore/kWh
    #strømpris*wh*10
    ore1 = (signal1 * 0.001) * dagens_strømpris
    ore2 = (signal2 * 0.001) * dagens_strømpris
    ore3 = (signal3 * 0.001) * dagens_strømpris
    ore4 = (signal4 * 0.001) * dagens_strømpris
    ore5 = (signal5 * 0.001) * dagens_strømpris
    ore6 = (signal6 * 0.001) * dagens_strømpris

    strømlist = (time_now, signal1, signal2, signal3, signal4, signal5,
                 signal6, ore1, ore2, ore3, ore4, ore5, ore6)

    #store data in excel
    wb = openpyxl.load_workbook("strømbruk.xlsx")
    todays_date = date.today()
    current_date = str(todays_date.year) + "-" + str(todays_date.month)
    sh = wb[current_date]
    sh.append(strømlist)
    wb.save("strømbruk.xlsx")
Beispiel #22
0
	def __init__(self, editor):
		Signal.__init__(self)
		from MessageBarDisplayer import Displayer
		Displayer(self, editor)
		from MessageBarUpdater import Updater
		Updater(self, editor)
		from MessageFormatter import Formatter
		Formatter(self, editor)
		from ClipboardHandler import Handler
		Handler(self, editor)
		from ReadonlyHandler import Handler
		Handler(self, editor)
		from SavedHandler import Handler
		Handler(self, editor)
		from FileLoadHandler import Handler
		Handler(self, editor)
		from FallbackMessageHandler import Handler
		Handler(self, editor)
		from StackMessageHandler import Handler
		Handler(self, editor)
		from TimedMessageHandler import Handler
		Handler(self, editor)
Beispiel #23
0
	def __init__(self, editor):
		Signal.__init__(self)
		from MatchIndexer import Indexer
		Indexer(self, editor)
		from MatchSelector import Selector
		Selector(self, editor)
		from MatchNavigator import Navigator
		Navigator(self, editor)
		from Reseter import Reseter
		Reseter(self, editor)
		from MatchColorer import Colorer
		Colorer(self, editor)
		from Marker import Marker
		Marker(self, editor)
		from Searcher import Searcher
		Searcher(self, editor)
		from RegexCreator import Creator
		Creator(self, editor)
		from PatternCreator import Creator
		Creator(self, editor)
		from SelectionDetector import Detector
		Detector(self, editor)
Beispiel #24
0
	def __init__(self):
		Signal.__init__(self)
		self.__init_attributes()
		from ProcessMonitor import Monitor
		Monitor(self)
		from DBusService import DBusService
		DBusService(self)
		from GUI.Manager import Manager
		Manager(self)
		from LastFileOpener import Opener
		Opener(self)
		from Feedback import Feedback
		Feedback(self)
		from MatchFilterer import Filterer
		Filterer(self)
		from DataGenerator import Generator
		Generator(self)
		from FileOpener import Opener
		Opener(self)
		from RecentInfoListener import Listener
		Listener(self)
		from gobject import timeout_add
		timeout_add(1000, self.__response)
Beispiel #25
0
 def __init__(self, editor):
     Signal.__init__(self)
     from HideTimer import Timer
     Timer(self, editor)
     from Animator import Animator
     Animator(self, editor)
     from DeltaCalculator import Calculator
     Calculator(self, editor)
     from PublicAPIVisibilityUpdater import Updater
     Updater(self, editor)
     from VisibilityUpdater import Updater
     Updater(self, editor)
     from Displayer import Displayer
     Displayer(self, editor)
     from DisplayerManager import Manager
     Manager(self, editor)
     from ViewSizeUpdater import Updater
     Updater(self, editor)
     from BarSizeUpdater import Updater
     Updater(self, editor)
     from EventBoxColorChanger import Changer
     Changer(self, editor)
     from Widget import Widget
     Widget(self, editor)
Beispiel #26
0
	def apply(self, signalToFilter, showFilterResult = False):
		taps = len(self.coefficients)
		newAmplitude = [0 for i in range(len(signalToFilter.amplitude))]
		for i in range(len(signalToFilter.amplitude)):
			if i >= taps:
				for j in range(taps):
					newAmplitude[i] = newAmplitude[i] + (signalToFilter.amplitude[i - j] * self.coefficients[taps - j - 1])
			else:
				for j in range(taps - (taps - i)):
					newAmplitude[i] = newAmplitude[i] + (signalToFilter.amplitude[i - j] * self.coefficients[taps - j - 1])
		if showFilterResult:
			self.showResult(newAmplitude, 'Result of Finite Impulse Response', signalToFilter.amplitude)
		newSignal = Signal()
		newSignal.name = signalToFilter.name
		newSignal.time = dc(signalToFilter.time)
		newSignal.amplitude = dc(newAmplitude)
		newSignal.samplingFrequency = dc(signalToFilter.samplingFrequency)
		return newSignal
Beispiel #27
0
def kWh_to_NOK_upload():
    todays_date = date.today()
    current_date = str(todays_date.year) + "-" + str(todays_date.month)

    wb = openpyxl.load_workbook("strømbruk.xlsx", data_only=True)
    sh = wb[current_date]

    NOK_1 = sh.cell(2, 20).value
    NOK_2 = sh.cell(2, 21).value
    NOK_3 = sh.cell(2, 22).value
    NOK_4 = sh.cell(2, 23).value
    NOK_5 = sh.cell(2, 24).value
    NOK_6 = sh.cell(2, 25).value

    Signal(key_1, token1).write(NOK_1)
    Signal(key_2, token2).write(NOK_2)
    Signal(key_3, token3).write(NOK_3)
    Signal(key_4, token4).write(NOK_4)
    Signal(key_5, token5).write(NOK_5)
    Signal(key_6, token6).write(NOK_6)
    wb.save("strømbruk.xlsx")
Beispiel #28
0
	def apply(self, signalToFilter, showFilterResult = False):
		newAmplitude = [0 for i in range(len(signalToFilter.amplitude))]
		for i in range(len(signalToFilter.amplitude)):
			subList = []
			if i >= self.taps:
				for j in range(self.taps):
					subList.append(signalToFilter.amplitude[i - j])
			else:
				for j in range(self.taps - (self.taps - i)):
					subList.append(signalToFilter.amplitude[i - j])
			subList.sort()
			if(len(subList) < self.taps):
				if(len(subList) != 0):
					newAmplitude[i] = newAmplitude[i] + subList[0]
			else:
				newAmplitude[i] = newAmplitude[i] + (subList[int(self.taps/2)])
		if showFilterResult:
			self.showResult(newAmplitude, 'Result of Median Filter', signalToFilter.amplitude)
		newSignal = Signal()
		newSignal.name = signalToFilter.name
		newSignal.time = dc(signalToFilter.time)
		newSignal.amplitude = dc(newAmplitude)
		newSignal.samplingFrequency = dc(signalToFilter.samplingFrequency)
		return newSignal
Beispiel #29
0
 def __init__(self, editor):
     Signal.__init__(self)
     from Switcher import Switcher
     Switcher(self, editor)
Beispiel #30
0
	def __init__(self, editor):
		Signal.__init__(self)
		from ProcessCommunicator import Communicator
		Communicator(self, editor)
		from ExternalProcessStarter import Starter
		Starter(self, editor)