aboutsummaryrefslogtreecommitdiff
blob: 1e4efb9030a68470728122ab1332233855d4fc8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# R overlay -- main interface
# -*- coding: utf-8 -*-
# Copyright (C) 2013 André Erdmann <dywi@mailerd.de>
# Distributed under the terms of the GNU General Public License;
# either version 2 of the License, or (at your option) any later version.

import roverlay

import roverlay.interface.root
import roverlay.interface.depres
import roverlay.interface.remote

roverlay.core.setup_initial_logger()

class MainInterface ( roverlay.interface.root.RootInterface ):

   def __init__ ( self, *args, **kwargs ):
      if args or kwargs:
         self.setup ( *args, **kwargs )
   # --- end of __init__ (...) ---

   def setup ( self, *args, **kw ):
      super ( MainInterface, self ).__init__ ( *args, **kw )
      self.__class__.register_interface (
         "depres", roverlay.interface.depres.DepresInterface
      )
      self.__class__.register_interface (
         "remote", roverlay.interface.remote.RemoteInterface
      )
      return True
   # --- end of setup (...) ---