wxPython set up instructions The 2019 Stack Overflow Developer Survey Results Are InInstalling...

Why do UK politicians seemingly ignore opinion polls on Brexit?

Can distinct morphisms between curves induce the same morphism on singular cohomology?

Why isn't airport relocation done gradually?

Lethal sonic weapons

Understanding the implication of what "well-defined" means for the operation in quotient group

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

Is this food a bread or a loaf?

What is the meaning of Triage in Cybersec world?

Is it possible for the two major parties in the UK to form a coalition with each other instead of a much smaller party?

Can't find the latex code for the ⍎ (down tack jot) symbol

How come people say “Would of”?

Limit the amount of RAM Mathematica may access?

What do hard-Brexiteers want with respect to the Irish border?

Is flight data recorder erased after every flight?

How to deal with fear of taking dependencies

Why can Shazam do this?

What does "rabbited" mean/imply in this sentence?

How to make payment on the internet without leaving a money trail?

How was Skylab's orbit inclination chosen?

How to reverse every other sublist of a list?

Geography at the pixel level

What is a mixture ratio of propellant?

Springs with some finite mass

If the Wish spell is used to duplicate the effect of Simulacrum, are existing duplicates destroyed?



wxPython set up instructions



The 2019 Stack Overflow Developer Survey Results Are InInstalling 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.

GetPosition() has the correct values, but the actual position 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)








share





























    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.

    GetPosition() has the correct values, but the actual position 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)








    share

























      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.

      GetPosition() has the correct values, but the actual position 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)








      share














      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.

      GetPosition() has the correct values, but the actual position 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)






      wxpython





      share












      share










      share



      share










      asked 1 min 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-set-up-instructions%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-set-up-instructions%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

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...