Hi friends, I'm Anderson du Lustoza, do not speak English, so I'm writing in Portuguese and translated google translator. I'm creating an alternate interface for Gnome PyGObject called Singularity. One question I have is on the panels that hide themselves, like the Unity launcher for Ubuntu Linux.So how do I create a gtk.Window move?link my site to download the Singularity: https://sites.google.com/site/andersondulustoza/

Always surprised at how well google translate does.I'm not sure that I understand the question? Is it how to move the window? Whether the display manager allows it is another matter but the method for doing so can be found at: http://www.pygtk.org/docs/pygtk/class-gtkwindow.html#method-gtkwindow--moveBy the way the ubuntu desktop being unity has diverged a bit from GNOME so you'll probably find that some features you see in the desktop won't transfer as easily as expected.

Actually already knew about the method "move", but he just fixed the window in place of the screen. I wonder for example how can I make the window walking slowly from the center of the screen to the left corner, like an animation.

As far as I can tell the functionality you're after doesn't exist within GTK itself. GTK by and large handles the functionality that occurs within a window and leaves the visual effects of the windows themselves to whichever window manager the desktop environment uses. In your program you could possibly program in calls to a specific window manager e.g. compiz, but if you're using it with GTK as well this will break the cross-platform capability of your GTK app (not to mention being bad design practice and difficult to maintain as Ubuntu runs through versions rapidly and lately window managers are get chopped and changed almost as often). Ideally you'll want a function that can detect the current window manager at run time and then do whatever you want with the window managers that can handle it as well as dealing with window managers that just don't. In either case I don't think this is a gtk question and ends up being out of my areas of expertise.

Oops my mistake. this functionality doe exist, I was just looking through the wrong API (It's gdk rather than gtk). The function you'd want is gdk_window_move or gdk_window_move_resize. You can also change the opacity.

Although there is a specific function for the animation windows in gtk, the method "moves" can be implemented with Python mathematical operations. I know that the program AdeskBar does just that, but I do not know how to adapt the code.x, y = day, hourwindow = gtk.Window()window.move(x,y)try this example trasformar time moving to the window, but it remains fixed in position started, then the secret would be to create an update?complex!

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum