Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6015397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:49:49+00:00 2026-05-23T02:49:49+00:00

Working on a program ( found here , the files are longer, so posting

  • 0

Working on a program (found here, the files are longer, so posting them here would take up much space). My problem with it is that the main panel of gui_step_1.py is way off center from where it should be.

I have tried numerous things, including adding it to a sizer to straighten it out, but because of my program structure (MVC) I can’t do that because I instantiate controller in gui_step_1.py and controller does not inherit panel, frame, or anything related to wx (just a normal class).

What I need is pretty obvious once you see my program: I need step1 (instance of controller in gui_step_1.py) centered on the window.

Thanks for the help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:49:50+00:00Added an answer on May 23, 2026 at 2:49 am

    I didn’t sort through everything, but I think self.v.Center() in your controller class in gui_step_1.py is repositioning a Panel within its Frame instead of centering the Frame. Get rid of that, and things seem to line up properly. If you want to add the panel to a sizer, you’ll probably have to retrieve it from the controller class.

    The trouble you’re having with the interface is more a symptom of a design problem, though. Your view frame creates instances of two different classes, which create instances of widgets which are children of the frame. Although you’re trying to use MVC, it shouldn’t be changing the way you add a widget to a frame.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a program that uses HTML/CSS/Javascript/JQuery for its user interface. One of
I'm currently working on a Win32 program which requires a main window containing many
I am working on a small program that requires the user to insert a
I'm working on the class that simply contains a character array and it's size
I have a program that occasionally needs to scan some directories recursively (an improvement
I've got an app that uses Sql CE 3.5 SP2. I've included the DLL's
I'm working on an assembler for a very basic ISA. Currently I'm implementing parser
I'm trying to communicate to a device using RS-485 through the serial port. Everything
After reading some reports about the inadequacies of the Mono 2.6 garbage collector, I
I am using the Google App Engine testbed framework to write test cases with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.