specifying position of a wxFrame?

Why doesn't my specified frame position take effect? No matter what I
set the position to, the window shows up at the same spot on the screen.
Thank you.

wxPython 2.5.2.7, gtk 1.2
python 2.3

#!/usr/bin/env python

import wx

class MyFrame(wx.Frame):

    def __init__(self):
        wx.Frame.__init__(self, None, -1, ' P-Yoo!', wx.Point(300,300))

class MyApp(wx.App):

    def OnInit(self):
        self.frame = MyFrame()
        self.frame.Show(True)
        self.SetTopWindow(self.frame)
        return 1

app = MyApp()
app.MainLoop()

On Windows XP with the same version of Python and wxPython, it seems to
position on the screen correctly.

···

-----Original Message-----
From: Scott [mailto:syrinx@simplecom.net]
Sent: Sunday, August 22, 2004 1:23 AM
To: wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] specifying position of a wxFrame?

Why doesn't my specified frame position take effect? No matter what I
set the position to, the window shows up at the same spot on the screen.
Thank you.

wxPython 2.5.2.7, gtk 1.2
python 2.3

#!/usr/bin/env python

import wx

class MyFrame(wx.Frame):

    def __init__(self):
        wx.Frame.__init__(self, None, -1, ' P-Yoo!', wx.Point(300,300))

class MyApp(wx.App):

    def OnInit(self):
        self.frame = MyFrame()
        self.frame.Show(True)
        self.SetTopWindow(self.frame)
        return 1

app = MyApp()
app.MainLoop()

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Thanks. So it's probably either a bug in wxGTK or GTK itself. Anyone know for sure?

···

On Windows XP with the same version of Python and wxPython, it seems to
position on the screen correctly.

-----Original Message-----
From: Scott [mailto:syrinx@simplecom.net]
Sent: Sunday, August 22, 2004 1:23 AM
To: wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] specifying position of a wxFrame?

Why doesn't my specified frame position take effect? No matter what I
set the position to, the window shows up at the same spot on the screen.
Thank you.

wxPython 2.5.2.7, gtk 1.2
python 2.3

#!/usr/bin/env python

import wx

class MyFrame(wx.Frame):

    def __init__(self):
        wx.Frame.__init__(self, None, -1, ' P-Yoo!', wx.Point(300,300))

class MyApp(wx.App):

    def OnInit(self):
        self.frame = MyFrame()
        self.frame.Show(True)
        self.SetTopWindow(self.frame)
        return 1

app = MyApp()
app.MainLoop()

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Scott <syrinx@simplecom.net> writes:

Thanks. So it's probably either a bug in wxGTK or GTK itself. Anyone
know for sure?

Have you checked your Window Manager preferences? There are options
such as smart positioning, positioning in the center, etc. that might
affect what you want.

···

--
Godoy. <godoy@ieee.org>

Hey thanks! I didn't even think of that. It wasn't a bug at all. Just my ignorance. :slight_smile:

···

On Sun, 22 Aug 2004 10:13:34 -0300 Jorge Godoy <godoy@ieee.org> wrote:

Scott <syrinx@simplecom.net> writes:

> Thanks. So it's probably either a bug in wxGTK or GTK itself. Anyone
> know for sure?

Have you checked your Window Manager preferences? There are options
such as smart positioning, positioning in the center, etc. that might
affect what you want.