Eclipse Icons Bug on Kubuntu 12.10

It’s ironic but, seems that Gtk is not so friendly at KDE (or even Linux) ambient.

On these days I tried to use the Eclipse IDE with WindowBuilder plugin. The installation of WindowBuilder was really easy and Eclipse looks work softly, unlike Netbeans.

Some tests later, the WindowBuilder’s Palette doesnt appear anymore. Look the dock at left side.eclipse_no_paletteSome searches later, I found this bug report. Seems that Gtk doesnt work well at Linux? Its a kind of strange bug. But someone suggested insert into eclipse.ini file, those lines:


So, I put tem at the end of that file. Here its located /usr/lib/eclipse/.
That suggestion perfectly worked, now Eclipse is perfect! Even the toolbar icons now are ok.



Python – Tk Hello World

Exemplo de uso do Tkinter, biblioteca gráfica incorporada ao Python.
Esse exemplo foi retirado desse site e adaptado para o Python 3.

Uma boa fonte de referência Tkinter é o TkDocs.

from tkinter import *

class App:

    def __init__(self, master):

        frame = Frame(master)

        self.button = Button(frame, text="QUIT", fg="red", command=frame.quit)

        self.hi_there = Button(frame, text="Hello", command=self.say_hi)

    def say_hi(self):
        print ("hi there, everyone!")

root = Tk()

app = App(root)


Não sei o que acontece no Kubuntu 12.04, pois mesmo executando um código com a versão 3 do Python, o que obtenho é a mesma janela feia do Python 2.

Purging Configuration Files

Hi folks.

This is just a tip for clean up your Kubuntu (Debian Like) system.

The scenary: You installed a program (or any package) with Kpackagekit, and now you don’t want this program anymore so, you go on Kpackagekit and remove it. Simple and fast.

The problem: When you remove a program using the actual Kpackagekit, it’s remove “only” the program package with his man pages and other things. What it doesn’t remove is the configuration files about this program installed, and this configs files “eat” some disk space.

The solution: There are two useful ways to Kubuntu users “purge” this configuration files:

1- Later that you remove something using the Kpackagekit, run at your terminal:

$ dpkg --list | grep '^rc\b' | awk '{ print $2 }' | xargs sudo dpkg -P

2- Remove the program using the terminal:

$ sudo apt-get purge packageName

and later remove the dependencies (configuration files included) with:

$ sudo apt-get autoremove --purge

This function to remove the configuration files would be a great new feature to KpackageKit.

*The Moun (QApt) package manager already has this feature.

*If you use Ubuntu (with Gnome) the Synaptic already remove the configuration files, is just remove with the option “Mark to complete removel”, or, you can use the Ubuntu-Tweak to do that.

This command line tip was found here.