Esempio n. 1
0
    def __init__(self, controller, kekz=False):
        TabManager.__init__(self)
        pluginmanager.iterator.__init__(self)
        sys.stdout.write('\033]0;rattlekekz\007')  # TODO: some more maybe?
        self.revision = rev
        self.Ping = ""
        self.nickname = ""
        self.controller = controller
        self.name, self.version = "rattlekekz", "0.99"
        colors = [
            ('normal', 'default', 'default'),
            ('divider', 'white', 'dark blue'),
            ('dividerstate', 'light gray', 'dark blue'),
            ('dividerme', 'light red', 'dark blue'),
            ('red', 'light red', 'default'),  #admin
            ('yellow', 'yellow', 'default'),  #chatop
            ('blue', 'light blue', 'default'),  #roomop
            ('green', 'light green', 'default'),  #special
            ('redaway', 'dark red', 'default'),
            ('yellowaway', 'brown', 'default'),
            ('blueaway', 'dark blue', 'default'),
            ('greenaway', 'dark green', 'default'),
            ('normalaway', 'light gray', 'default'),
            ("timestamp", "dark green", "default"),  #time
            ("magenta", "light magenta", "default"),
            ("cyan", "light cyan", "default"),
            ("orange", "brown", "default"),
            ("pink", "light magenta", "default"),
            ("white", "white", "default"),
            ('gray', 'light gray', 'default'),
            ('smilie', 'black', 'brown')
        ]

        bold = [
            ('normalbold', 'default,bold', 'default'),  #,'bold'),
            ('redbold', 'light red,bold', 'default', 'bold'),  #admin
            ('yellowbold', 'yellow,bold', 'default', 'bold'),  #chatop
            ('bluebold', 'light blue,bold', 'default', 'bold'),  #roomop
            ('greenbold', 'light green,bold', 'default', 'bold'),  #special
            ('divideryellow', 'yellow,bold', 'dark blue'),
            ("magentabold", "light magenta,bold", "default", 'bold'),
            ("cyanbold", "light cyan,bold", "default", 'bold'),
            ("orangebold", "brown,bold", "default", 'bold'),
            ("pinkbold", "light magenta,bold", "default", 'bold'),
            ("whitebold", "white,bold", "default", 'bold'),
            ('graybold', 'light gray,bold', 'default', "bold")
        ]
        nobold = [('normalbold', 'default', 'default'),
                  ('redbold', 'light red', 'default'),
                  ('yellowbold', 'yellow', 'default'),
                  ('bluebold', 'light blue', 'default'),
                  ('greenbold', 'light green', 'default'),
                  ('divideryellow', 'yellow', 'dark blue'),
                  ("magentabold", "light magenta", "default"),
                  ("cyanbold", "light cyan", "default"),
                  ("orangebold", "brown", "default"),
                  ("pinkbold", "light magenta", "default"),
                  ("whitebold", "white", "default"),
                  ('graybold', 'light gray', 'default')]
        try:
            self.tui.register_palette(colors + bold)
        except:
            self.tui.register_palette(colors + nobold)
        self.smilies = {
            "s6": ":-)",
            "s4": ":-(",
            "s1": ":-/",
            "s8": "X-O",
            "s7": "(-:",
            "s9": "?-|",
            "s10": "X-|",
            "s11": "8-)",
            "s2": ":-D",
            "s3": ":-P",
            "s5": ";-)",
            "sxmas": "o:)",
            "s12": ":-E",
            "s13": ":-G",
            "kekz": "cookie"
        }
        reactor.addReader(self)
        reactor.callWhenRunning(self.init)
        self.oldtime = ""
        self.isConnected = False
Esempio n. 2
0
    def __init__(self, controller):
        TabManager.__init__(self)
        pluginmanager.iterator.__init__(self)
        sys.stdout.write('\033]0;rattlekekz\007') # TODO: some more maybe?
        self.revision=rev
        self.Ping=""
        self.nickname=""
        self.controller = controller
        self.name,self.version = "rattlekekz","20100806"
        colors =[('normal','default','default'),
            ('divider', 'white', 'dark blue'),
            ('dividerstate', 'light gray', 'dark blue'),
            ('dividerme', 'light red', 'dark blue'),

            ('red','light red','default'),  #admin
            ('yellow','yellow','default'),  #chatop
            ('blue','light blue','default'), #roomop
            ('green','light green','default'), #special
            ('redaway','dark red','default'),
            ('yellowaway','brown','default'),
            ('blueaway','dark blue','default'),
            ('greenaway','dark green','default'),
            ('normalaway','light gray','default'),
            ("timestamp","dark green","default"), #time
            ("magenta","light magenta","default"),
            ("cyan","light cyan","default"),
            ("orange","brown","default"),
            ("pink","light magenta","default"),
            ("white","white","default"),
            ('gray','light gray','default'),
            ('smilie','black','brown')]

        bold=[('normalbold','default,bold','default'),#,'bold'),
            ('redbold','light red,bold','default','bold'),  #admin
            ('yellowbold','yellow,bold','default','bold'),  #chatop
            ('bluebold','light blue,bold','default','bold'), #roomop
            ('greenbold','light green,bold','default','bold'), #special
            ('divideryellow', 'yellow,bold', 'dark blue'),
            ("magentabold","light magenta,bold","default",'bold'),
            ("cyanbold","light cyan,bold","default",'bold'),
            ("orangebold","brown,bold","default",'bold'),
            ("pinkbold","light magenta,bold","default",'bold'),
            ("whitebold","white,bold","default",'bold'),
            ('graybold','light gray,bold','default',"bold")]
        nobold=[('normalbold','default','default'),
            ('redbold','light red','default'),
            ('yellowbold','yellow','default'),
            ('bluebold','light blue','default'),
            ('greenbold','light green','default'),
            ('divideryellow', 'yellow', 'dark blue'),
            ("magentabold","light magenta","default"),
            ("cyanbold","light cyan","default"),
            ("orangebold","brown","default"),
            ("pinkbold","light magenta","default"),
            ("whitebold","white","default"),
            ('graybold','light gray','default')]
        try:
            self.tui.register_palette(colors+bold)
        except:
            self.tui.register_palette(colors+nobold)
        self.smilies={"s6":":-)",
                 "s4":":-(",
                 "s1":":-/",
                 "s8":"X-O",
                 "s7":"(-:",
                 "s9":"?-|",
                 "s10":"X-|",
                 "s11":"8-)",
                 "s2":":-D",
                 "s3":":-P",
                 "s5":";-)",
                 "sxmas":"o:)",
                 "s12":":-E",
                 "s13":":-G",
                 "kekz": "cookie"}
        reactor.addReader(self)
        reactor.callWhenRunning(self.init)
        self.oldtime=""
        self.isConnected=False
Esempio n. 3
0
 def changeTab(self, tabname):
     TabManager.changeTab(self, tabname)
     self.setTitle()
     if not self.ShownRoom == None:
         self.getTab(self.ShownRoom).clock(self.time)
         self.redisplay()
Esempio n. 4
0
 def changeTab(self,tabname):
     TabManager.changeTab(self,tabname)
     self.setTitle()
     if not self.ShownRoom == None:
         self.getTab(self.ShownRoom).clock(self.time)
         self.redisplay()