Jump to content
Fórum Script Brasil
  • 0

Bugs no modulo wnck?


Anderson du Lustoza

Question

Oi pessoas, to criando uma interface alternativa pro Linux/Gnome.

O programa era escrito em PYGTK, mas resolvi atualizar os codigos pro PYGOBJECT, porque é a linguagem requisitada no GTK+3. O plobrema esta no modulo wnck. ele serve para criar os botoes de gerenciamento de janelas e areas de trabalho.

Quando criamos uma wnck.tasklist e uma wnck.pager e colocamos juntas elas ficam enormes. não diminuem de jeito manera.

olha o codigo simplificado aqui:

#!/usr/bin/env python

# PyDock 1.0 - Anderson du Lustoza

# derivado do projeto Singularity.

from gi.repository import Gtk, Gdk, Wnck

class PyDock():

def __init__(self):

dock = Gtk.Window(); #dock.set_type_hint(Gdk.WindowTypeHint.DOCK)

dock.set_size_request(Gdk.Screen.width()-200,32)

dock.move(0+100,Gdk.Screen.height()-32)

dockbox = Gtk.HBox()

button = Gtk.Button()

button.set_size_request(24,24)

button.connect("button-press-event",self.on_button_press)

tasklist = Wnck.Tasklist()

pager = Wnck.Pager()

dockbox.pack_start(button,False,True,6)

dockbox.pack_start(tasklist,True,True,1)

dockbox.pack_end(pager,False,True,6)

dock.add(dockbox)

dock.show_all()

def on_button_press(self,widget,event):

Gtk.main_quit()

PyDock()

Gtk.main()

AH, se estiverem interressados em ajudar tem o download do source aqui:

https://sites.google.com/site/andersondulustoza/singularity

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...