title: How to use Atk.Relation in Python
body: <p>i am trying to migrate an application from gtk2 to gtk3 using GObject Introspection (<code>gi.repository</code>).</p>
  
  <p>The problem i have now is creating an <code>Atk.Relation</code> in an accessibility method that looks like this:</p>
  
  <pre class="lang-python prettyprint-override"><code>from gi.repository import Atk
  
  def atk_acc(obj, lbl):
  
      atk_obj = obj.get_accessible()
      atk_l = lbl.get_accessible()
  
      relation_set = atk_l.ref_relation_set()
      relation = Atk.Relation.new([atk_obj], 1, Atk.RelationType.LABEL_FOR)
      relation_set.add(relation)
  </code></pre>
  
  <p>When i run the application, it breaks with an exception:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/erick/Desarrollo/git/canaima-instalador/canaimainstalador/main.py", line 237, in siguiente
      CFG['w'].next('Metodo', Metodo, (CFG), PasoMetodo(CFG))
    File "/home/erick/Desarrollo/git/canaima-instalador/canaimainstalador/pasos/metodo.py", line 63, in __init__
      atk_acc(self.cmb_discos, self.lbl1)
    File "/home/erick/Desarrollo/git/canaima-instalador/canaimainstalador/mod_accesible.py", line 37, in atk_acc
      relation = Atk.Relation.new([atk_obj], 1, Atk.RelationType.LABEL_FOR)
    File "/usr/lib/python2.7/dist-packages/gi/types.py", line 72, in constructor
      return info.invoke(cls, *args, **kwargs)
  TypeError: Expected Atk.Object, but got GObjectMeta
  </code></pre>
  
  <p>In <a href="https://developer.gnome.org/atk/unstable/AtkRelation.html#atk-relation-new" rel="nofollow">ATK documentation</a> says that the first argument of <code>Atk.Relation.new</code> is an array.</p>
  
  <p>What i'm doing wrong here?</p>