wxPython frame positioning The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Installing wxPython and 'getting gpg: no valid OpenPGP data found' errorHow to install wxpython ubuntu 16.04How to install wxpython for virtualenvHow to download stable version of wxPython?How to install wxpython 4 ubuntu 18.04

Is every episode of "Where are my Pants?" identical?

How to read αἱμύλιος or when to aspirate

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

Do warforged have souls?

Homework question about an engine pulling a train

Why not take a picture of a closer black hole?

Can each chord in a progression create its own key?

Why did Peik Lin say, "I'm not an animal"?

Can the DM override racial traits?

Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?

How do spell lists change if the party levels up without taking a long rest?

how can a perfect fourth interval be considered either consonant or dissonant?

What aspect of planet Earth must be changed to prevent the industrial revolution?

What happens to a Warlock's expended Spell Slots when they gain a Level?

Why doesn't shell automatically fix "useless use of cat"?

What was the last x86 CPU that did not have the x87 floating-point unit built in?

Variable with quotation marks "$()"

How to handle characters who are more educated than the author?

Word for: a synonym with a positive connotation?

How many cones with angle theta can I pack into the unit sphere?

Solving overdetermined system by QR decomposition

How did passengers keep warm on sail ships?

Drawing vertical/oblique lines in Metrical tree (tikz-qtree, tipa)

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?



wxPython frame positioning



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Installing wxPython and 'getting gpg: no valid OpenPGP data found' errorHow to install wxpython ubuntu 16.04How to install wxpython for virtualenvHow to download stable version of wxPython?How to install wxpython 4 ubuntu 18.04



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Ubuntu-18.04, Python-3.6.7, wxWidgets-4.0.4, GTK3 .

I have been using wxPHP for a few years, but now I am writing my very first wxPython app.

I cannot position the frame with the constructor parameters, or with the SetPosition() method, or with the Centre() method.

GetPosition() has the correct values, but the actual position on the screen is (0, 0), which I presume is wxDefaultPosition.

Size works OK.

It must be something totally obvious to everybody but me, but what is it?



#!/usr/bin/env python
# frame.py
import wx
app = wx.App(False)

# frame
frame_xpos = 100
frame_ypos = 200
frame_width = 640
frame_height = 480
frame_title = "Title"
frame_icon = "./python/icon.png"
frame = wx.Frame(None, -1)
frame.SetPosition(wx.Point(frame_xpos, frame_ypos))
frame.SetSize(wx.Size(frame_width, frame_height))
frame.SetIcon(wx.Icon(frame_icon))
frame.SetTitle(frame_title)
frame.Show(True)
print frame.GetPosition()

# events
app.MainLoop()


The terminal outputs a warning (which I would like to suppress):



$ ./python/frame.py

(frame.py:7367): dbind-WARNING **: 12:08:46.199: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
(100, 200)


Added: I lied, it isn't Ubuntu-18.04, it is Lubuntu-18.04, the difference being Lubuntu uses Openbox window manager. This used to work OK with wxPHP. Is it a bug??










share|improve this question






























    0















    Ubuntu-18.04, Python-3.6.7, wxWidgets-4.0.4, GTK3 .

    I have been using wxPHP for a few years, but now I am writing my very first wxPython app.

    I cannot position the frame with the constructor parameters, or with the SetPosition() method, or with the Centre() method.

    GetPosition() has the correct values, but the actual position on the screen is (0, 0), which I presume is wxDefaultPosition.

    Size works OK.

    It must be something totally obvious to everybody but me, but what is it?



    #!/usr/bin/env python
    # frame.py
    import wx
    app = wx.App(False)

    # frame
    frame_xpos = 100
    frame_ypos = 200
    frame_width = 640
    frame_height = 480
    frame_title = "Title"
    frame_icon = "./python/icon.png"
    frame = wx.Frame(None, -1)
    frame.SetPosition(wx.Point(frame_xpos, frame_ypos))
    frame.SetSize(wx.Size(frame_width, frame_height))
    frame.SetIcon(wx.Icon(frame_icon))
    frame.SetTitle(frame_title)
    frame.Show(True)
    print frame.GetPosition()

    # events
    app.MainLoop()


    The terminal outputs a warning (which I would like to suppress):



    $ ./python/frame.py

    (frame.py:7367): dbind-WARNING **: 12:08:46.199: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
    (100, 200)


    Added: I lied, it isn't Ubuntu-18.04, it is Lubuntu-18.04, the difference being Lubuntu uses Openbox window manager. This used to work OK with wxPHP. Is it a bug??










    share|improve this question


























      0












      0








      0








      Ubuntu-18.04, Python-3.6.7, wxWidgets-4.0.4, GTK3 .

      I have been using wxPHP for a few years, but now I am writing my very first wxPython app.

      I cannot position the frame with the constructor parameters, or with the SetPosition() method, or with the Centre() method.

      GetPosition() has the correct values, but the actual position on the screen is (0, 0), which I presume is wxDefaultPosition.

      Size works OK.

      It must be something totally obvious to everybody but me, but what is it?



      #!/usr/bin/env python
      # frame.py
      import wx
      app = wx.App(False)

      # frame
      frame_xpos = 100
      frame_ypos = 200
      frame_width = 640
      frame_height = 480
      frame_title = "Title"
      frame_icon = "./python/icon.png"
      frame = wx.Frame(None, -1)
      frame.SetPosition(wx.Point(frame_xpos, frame_ypos))
      frame.SetSize(wx.Size(frame_width, frame_height))
      frame.SetIcon(wx.Icon(frame_icon))
      frame.SetTitle(frame_title)
      frame.Show(True)
      print frame.GetPosition()

      # events
      app.MainLoop()


      The terminal outputs a warning (which I would like to suppress):



      $ ./python/frame.py

      (frame.py:7367): dbind-WARNING **: 12:08:46.199: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
      (100, 200)


      Added: I lied, it isn't Ubuntu-18.04, it is Lubuntu-18.04, the difference being Lubuntu uses Openbox window manager. This used to work OK with wxPHP. Is it a bug??










      share|improve this question
















      Ubuntu-18.04, Python-3.6.7, wxWidgets-4.0.4, GTK3 .

      I have been using wxPHP for a few years, but now I am writing my very first wxPython app.

      I cannot position the frame with the constructor parameters, or with the SetPosition() method, or with the Centre() method.

      GetPosition() has the correct values, but the actual position on the screen is (0, 0), which I presume is wxDefaultPosition.

      Size works OK.

      It must be something totally obvious to everybody but me, but what is it?



      #!/usr/bin/env python
      # frame.py
      import wx
      app = wx.App(False)

      # frame
      frame_xpos = 100
      frame_ypos = 200
      frame_width = 640
      frame_height = 480
      frame_title = "Title"
      frame_icon = "./python/icon.png"
      frame = wx.Frame(None, -1)
      frame.SetPosition(wx.Point(frame_xpos, frame_ypos))
      frame.SetSize(wx.Size(frame_width, frame_height))
      frame.SetIcon(wx.Icon(frame_icon))
      frame.SetTitle(frame_title)
      frame.Show(True)
      print frame.GetPosition()

      # events
      app.MainLoop()


      The terminal outputs a warning (which I would like to suppress):



      $ ./python/frame.py

      (frame.py:7367): dbind-WARNING **: 12:08:46.199: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
      (100, 200)


      Added: I lied, it isn't Ubuntu-18.04, it is Lubuntu-18.04, the difference being Lubuntu uses Openbox window manager. This used to work OK with wxPHP. Is it a bug??







      wxpython






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago







      Dave Kimble

















      asked 2 days ago









      Dave KimbleDave Kimble

      66119




      66119




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132601%2fwxpython-frame-positioning%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132601%2fwxpython-frame-positioning%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

          How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

          Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü