Пример #1
0
 def layout(self):
     if self.config['color'] == 'black':
         fonts.setup(10, 9, 10, 35)
         self._layout['width'] = 250
         self._layout['height'] = 122
         self._layout['face'] = (0, 40)
         self._layout['name'] = (5, 20)
         self._layout['channel'] = (0, 0)
         self._layout['aps'] = (28, 0)
         self._layout['uptime'] = (185, 0)
         self._layout['line1'] = [0, 14, 250, 14]
         self._layout['line2'] = [0, 108, 250, 108]
         self._layout['friend_face'] = (0, 92)
         self._layout['friend_name'] = (40, 94)
         self._layout['shakes'] = (0, 109)
         self._layout['mode'] = (225, 109)
         self._layout['status'] = {
             'pos': (125, 20),
             'font': fonts.Medium,
             'max': 20
         }
     else:
         fonts.setup(10, 8, 10, 25)
         self._layout['width'] = 212
         self._layout['height'] = 104
         self._layout['face'] = (0, 26)
         self._layout['name'] = (5, 15)
         self._layout['channel'] = (0, 0)
         self._layout['aps'] = (28, 0)
         self._layout['status'] = (91, 15)
         self._layout['uptime'] = (147, 0)
         self._layout['line1'] = [0, 12, 212, 12]
         self._layout['line2'] = [0, 92, 212, 92]
         self._layout['friend_face'] = (0, 76)
         self._layout['friend_name'] = (40, 78)
         self._layout['shakes'] = (0, 93)
         self._layout['mode'] = (187, 93)
         self._layout['status'] = {
             'pos': (125, 20),
             'font': fonts.Medium,
             'max': 14
         }
     return self._layout
Пример #2
0
 def layout(self):
   fonts.setup(10, 9, 10, 35)
   self._layout['width'] = 250
   self._layout['height'] = 122
   self._layout['face'] = (0, 40)
   self._layout['name'] = (5, 20)
   self._layout['channel'] = (0, 0)
   self._layout['aps'] = (28, 0)
   self._layout['uptime'] = (185, 0)
   self._layout['line1'] = [0, 14, 250, 14]
   self._layout['line2'] = [0, 108, 250, 108]
   self._layout['friend_face'] = (0, 92)
   self._layout['friend_name'] = (40, 94)
   self._layout['shakes'] = (0, 109)
   self._layout['mode'] = (225, 109)
   self._layout['status'] = {
       'pos': (125, 20),
       'font': fonts.Medium,
       'max': 20
   }
   return self._layout
Пример #3
0
 def layout(self):
     fonts.setup(8, 8, 8, 8)
     self._layout['width'] = 128
     self._layout['height'] = 64
     self._layout['face'] = (0, 32)
     self._layout['name'] = (0, 10)
     self._layout['channel'] = (0, 0)
     self._layout['aps'] = (25, 0)
     self._layout['uptime'] = (65, 0)
     self._layout['line1'] = [0, 9, 128, 9]
     self._layout['line2'] = [0, 53, 128, 53]
     self._layout['friend_face'] = (0, 41)
     self._layout['friend_name'] = (40, 43)
     self._layout['shakes'] = (0, 53)
     self._layout['mode'] = (103, 10)
     self._layout['status'] = {
         'pos': (30, 18),
         'font': fonts.Small,
         'max': 18
     }
     return self._layout
Пример #4
0
 def layout(self):
     fonts.setup(10, 8, 10, 28)
     self._layout['width'] = 212
     self._layout['height'] = 104
     self._layout['face'] = (0, 37)
     self._layout['name'] = (5, 18)
     self._layout['channel'] = (0, 0)
     self._layout['aps'] = (30, 0)
     self._layout['uptime'] = (147, 0)
     self._layout['line1'] = [0, 12, 212, 12]
     self._layout['line2'] = [0, 92, 212, 92]
     self._layout['friend_face'] = (0, 76)
     self._layout['friend_name'] = (40, 78)
     self._layout['shakes'] = (0, 93)
     self._layout['mode'] = (187, 93)
     self._layout['status'] = {
         'pos': (102, 18),
         'font': fonts.Small,
         'max': 20
     }
     return self._layout
Пример #5
0
 def layout(self):
     fonts.setup(10, 9, 10, 35)
     self._layout['width'] = 264
     self._layout['height'] = 176
     self._layout['face'] = (66, 27)
     self._layout['name'] = (5, 73)
     self._layout['channel'] = (0, 0)
     self._layout['aps'] = (28, 0)
     self._layout['uptime'] = (199, 0)
     self._layout['line1'] = [0, 14, 264, 14]
     self._layout['line2'] = [0, 162, 264, 162]
     self._layout['friend_face'] = (0, 146)
     self._layout['friend_name'] = (40, 146)
     self._layout['shakes'] = (0, 163)
     self._layout['mode'] = (239, 163)
     self._layout['status'] = {
         'pos': (38, 93),
         'font': fonts.Medium,
         'max': 40
     }
     return self._layout
Пример #6
0
 def layout(self):
     fonts.setup(10, 8, 10, 23)
     self._layout['width'] = 200
     self._layout['height'] = 96
     self._layout['face'] = (0, 24)
     self._layout['name'] = (5, 14)
     self._layout['channel'] = (0, 0)
     self._layout['aps'] = (25, 0)
     self._layout['uptime'] = (135, 0)
     self._layout['line1'] = [0, 11, 200, 11]
     self._layout['line2'] = [0, 85, 200, 85]
     self._layout['friend_face'] = (0, 69)
     self._layout['friend_name'] = (40, 71)
     self._layout['shakes'] = (0, 86)
     self._layout['mode'] = (175, 86)
     self._layout['status'] = {
         'pos': (85, 14),
         'font': fonts.Medium,
         'max': 16
     }
     return self._layout