Пример #1
0
 def execute(self):
     value = self.evaluate_expression(self.get_parameter(0))
     clipboard.set(value)
Пример #2
0
 def execute(self):
     clipboard.set('')
if __name__ == '__main__':
    import sys
    if len(sys.argv) == 1:
        values = {}
        while 1:
            name = raw_input('name: ').strip()
            if name == '':
                break
            value = raw_input('value: ').strip()
            if value.startswith('0x'):
                value = int(value, 16)
                values[name] = value
            else:
                print 'invalid!'
    else:
        arg = sys.argv[1:]
        values = {}
        for i in xrange(len(arg) / 2):
            name = arg[i * 2]
            value = arg[i * 2 + 1]
            try:
                value = int(value, 16)
                values[name] = value
            except ValueError:
                continue
    print values
    from mmfparser.player.clipboard import set
    data = make_bitdict_string(values)
    print data
    set('%r' % data)
 def execute(self):
     value = self.evaluate_index(0)
     clipboard.set(value)
Пример #5
0
 def execute(self):
     clipboard.set('')
Пример #6
0
 def execute(self):
     value = self.evaluate_expression(self.get_parameter(0))
     clipboard.set(value)
Пример #7
0
 def execute(self):
     value = self.evaluate_index(0)
     clipboard.set(value)