Try setting the window position BEFORE mapping the window (with show()). The set_position call just sets an attribute in the C level GtkWindow structure, which is used when the window is about to be resized. Also, it is probably better to use the constant WIN_POS_CENTER or the string 'center' when calling the set_position method, as constants have been know to change value (moreso in GNOME than GTK+, but it is a posibility). James Henstridge. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Fri, 15 Jan 1999, datafox wrote: > > Hello! > > I'm new in Linux world and I'm just starting to make my own applications > for Linux. I'm using Gtk+-1.1.11 and PyGtk-0.5.9 on RedHat 5.1. > Before I wrote many programms for Mikysoft Windoze in Delphi and Visual > Basic, so I'm not new in programming. And now what's my problem. > I'm trying to extend the example of IDE for PyGtk. I wrote 2 modules, > cvs.py and GtkMExtra.py. I hate when by showing some window places > itself somewhere on the screen. I'd like to show the window centered in > the screen. I found the method of GtkWindow named set_position. I tried > to use it but it behaves strange. In module cvs.py behaves it correct > and the window shows in the center of the screen. In module GtkMExtra.py > behaves it other. The window _EntryDialog shows somewhere on the screen. > I don't understand it! Why? > > Can you help me? Please look into the code. > > > Thank you > > Jiri > Danes > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
