Mining Bits and Knowledge
Artigos com o marcador pygtk
PyGI, the “new” PyGTK
13/04/11
| Este post também está disponível em Português |
Some time ago, at Planet Gnome, I started to stumble upon some news about a PyGTK deprecation. According to that last link, PyGTK 2.24 was it’s last release. This module is being replaced by GObject Introspection, or how it’s being called around here: PyGI.
For those who want some more info about this change, I strongly suggest to follow the Ubuntu App Development Week, they made 2 sessions about the PyGTK deprecation and how PyGI will work. The first one is GObject Introspection: The New Way For Developing GNOME Apps in Python, JavaScript and Others, with Tomeu Vizoso, and the other was PyGTK is dead, long live PyGI! Using gobject-introspection in Python, with Martin Pitt.
Based on others libraries that I saw disappear (HAL for example), I can say that PyGTK will still be around for a while. So, there’s no need to rush and port your GTK app, we got pleanty of time for this. Beyond that, there is no official PyGI documentation (at least I haven’t found). According to what I read, the PyGI module is already available in many distributions. You can test it with the following line:
$ python -c 'from gi.repository import Gtk; print Gtk'
There is only a slight problem, everything is outdated. All the significant changes are being prepperad to be pushed to Ubuntu 11.04 and Debian Unstable.
But one thin is sure, when I put my hands on an updated version of PyGI I’ll post some tutorials about how to write GTK applications using Python and PyGI. Until then…
PyGI, o “novo” PyGTK
13/04/11
| This post is also available in English |
Há algum tempo tenho visto lido no Planet Gnome informações de que o módulo PyGTK será descontinuada. Conforme esse último link, possivelmente o PyGTK 2.24 foi a última versão lançada. Esse módulo será substituída por GObject Introspection, ou como está sendo chamada PyGI.
Para aqueles que querem mais informações sobre essa mudança, sugiro acompanhar a Ubuntu App Development Week pois houveram 2 sessões sobre o abandono do PyGTK e como funcionará o novo PyGI. A primeira delas foi GObject Introspection: The New Way For Developing GNOME Apps in Python, JavaScript and Others, com Tomeu Vizoso, e a outra foi PyGTK is dead, long live PyGI! Using gobject-introspection in Python, com Martin Pitt.
Baseado em outras bibliotecas que foram descontinuadas, eu afirmo com certeza que o PyGTK ainda estará por aqui por um certo tempo, então nada de pânico e/ou desespero para migrar suas aplicações, teremos tempo para isso. Além do mais, ainda não há (pelo menos eu não encontrei) uma documentação específica. De acordo com o que eu li, o módulo PyGI já está disponível em diversas distribuições, basta testar da seguinte forma:
$ python -c 'from gi.repository import Gtk; print Gtk'
O único problema é que ainda estão todas desatualizadas. Essas mudanças ainda serão disponibilizadas na versão beta do Ubuntu 11.04 e no Debian Unstable.
Uma coisa é certa, assim que eu tiver acesso à versão atualizada do módulo PyGI eu postarei alguns tutoriais aqui sobre como escrever aplicações GTK usando o Python e o PyGI. Até lá…
Dobrando o Mundo!
17/03/10
| this post is also available in english |
Olá a todos e sejam bem vindos ao Mind Bending!
Alegro-me por anunciar o início desse blog! Muito irão se perguntar quem sou eu, então eu postei aqui uma breve descrição de quem eu sou e o o que faço. Vou adiantar que não sou ninguém importante e eu não sou nenhum especialista, eu simplesmente vou usar esse blog para postar algumas notícias que eu ache relevante, relatar um pouco sobre meus projetos e para documentar algumas coisas interessantes que eu venha a descobrir. Geralmente irei postar sobre assuntos relacionados com FOSS e GNU/Linux, diversos códigos em Python, jogos e, esporadicamente, alguns desenhos.
Antes que alguém pergunte vou falar sobre “o que é Mind Bending“. Traduzindo ao pé da letra, Mind Bending seria algo como dobrando a mente. A palavra bend em inglês tem um outros significados além de dobrar como, dar nova forma, tornar algo submisso, focar sua mente em algo e etc. Desta forma, o título seria “dobrando a mente” no sentido de:
- controle mental ou da mente;
- modificar um comportamento psicológico;
- modificar algo utilizando somente a mente;
- um esforço mental extenuante;
- e/ou utilizar todo o esforço mental em prol de algum objetivo.
Bending the World!
16/03/10
| Este post também está disponível em Português |
Hello there, and welcome to Mind Bending!
I’m pleased to announce the beginning of this blog! Many must be wondering who am I, so I posted a brief description of who I am and what I do here. In advance I’ll say that I’m no important person and I don’t master anything, I’ll just use this blog to post some news I found relevant, as a journal to my projects and to document some nice things I found out. I’ll commonly post about things related to FOSS and GNU/Linux that I like, lots of Python codes, games and sporadically something about drawings.
Before someone asks, “why Mind Bending”. Well, mind bending have many definitions:
- Something very difficult to understand; complex;
- Strenuous mind activity;
- Something that intensely alters one’s state of consciousness and mind;





