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

  • SEARCH
  • Home
  • 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 9081503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:19:49+00:00 2026-06-16T20:19:49+00:00

I am new to python , doing small GUI project using wxpython, Here is

  • 0

I am new to python , doing small GUI project using wxpython,

Here is my code:
import wx
import wx.grid as gridlib

class install(wx.Frame):

  def __init__ (self):

     wx.Frame.__init__(self, None, -1, 'Instal Deb', size=(250, 300), style = wx.MINIMIZE_BOX | wx.CLOSE_BOX | wx.SYSTEM_MENU)

     panel = wx.Panel(self, -1)


    text = wx.StaticText(panel, -1, label = 'System Name?', pos=(15,15))

    basicText = wx.TextCtrl(panel, -1, " ",pos=(15,32), size=(100,-1))

    basicText.SetInsertionPoint (0)



  sampleList = [' ', 'abc','xyz']

  wx.StaticText(panel, -1, "system Type?" , pos=(15, 70))

  wx.Choice(panel, -1, (15, 85), choices=sampleList)


   wx.StaticText(panel, -1, "Licence :", pos=(15,125))


      self.Center()

if name == ‘main‘:

app = wx.PySimpleApp()

 install().Show()

app.MainLoop()

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

I wanted to add 2 more choice box(ex: xx & yy)under the text “licence”.when i select “Hybrid ” in the system type choicebox both have to be appear or stay there as before but when i select “NVR” in the choicebox , “YY” choicebox should disappear,
as i am new to this i am not able to understand how to do. please help me to sort my problem..

  • 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-06-16T20:19:50+00:00Added an answer on June 16, 2026 at 8:19 pm
    def OnChoice1(evt):
       print self.ch1.SelectedString()
       self.ch2 = wx.Choice(panel,-1,(x,y),choices=["ABC".split()]
    def __init__(self):
    ...
       self.ch1 =  wx.Choice(panel, -1, (15, 85), choices=sampleList)
       self.ch1.Bind(wx.EVT_CHOICE,OnChoice1)
    

    Ill let you fill in some of the blanks but thats most of what you need to know

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

Sidebar

Related Questions

I was doing a small experiment with Python in my new win8 install and
I'm quite new to python, so I'm doing my usual of going through Project
I am new to python and am doing an export and import to a
Here's the code: #!/usr/bin/python import cgi, cgitb import httplib2 import xmltodict, json cgitb.enable() query
Hello I am a new user to Python and I am having problem doing
I'm a new Python programmer who is having a little trouble using 'self' in
I am new to Python and am curious if I am doing this correctly.
Being relatively new to Python 2, I'm uncertain how best to organise my class
I've recently seen several people doing things like this here on Stackoverflow: class A:
Am new to python and making some headway with threading - am doing some

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.