Help with combobox being invisible after upgrading python

Discussion in 'Python' started by molitar@hotmail.com, Apr 15, 2004.

  1. Guest

    I have a problem with combobox not showing after updating to latest Python. Part of code below that worked fine until I updated. The combobox is there and you can click on the invisible combobox and see
    the dropdown but the combobox itself is invisible.

    import wx
    from wxPython.wx import *
    from wxPython import *
    from webbrowser import open_new
    from threading import Thread
    from filemanager import *
    from os import path
    from os.path import join
    from variable import *

    class GlobalUploadDialog(wxDialog):
    def __init__(self, parent, ID, title,
    pos=wxDefaultPosition, size=wxDefaultSize,
    style=wxDEFAULT_DIALOG_STYLE):
    pre = wxPreDialog()
    pre.Create(parent, ID, title, pos, size, style)
    self.this = pre.this
    self.parent = parent


    # GUI dialog for Global upload setting
    ########################################
    loc_maxupload = self.parent.abcparams['maxupload']
    loc_maxuploadrate = self.parent.abcparams['maxuploadrate']
    loc_maxseeduploadrate = self.parent.abcparams['maxseeduploadrate']
    loc_uploadopt = self.parent.abcparams['uploadoption']
    loc_uploadtimeh = self.parent.abcparams['uploadtimeh']
    loc_uploadtimem = self.parent.abcparams['uploadtimem']
    loc_uploadratio = self.parent.abcparams['uploadratio']

    ID_COMBOBOX_HTIME = wxNewId()
    ID_COMBOBOX_MTIME = wxNewId()
    ID_COMBOBOX_RATIO = wxNewId()

    self.cbhtime = wx.ComboBox(self,ID_COMBOBOX_HTIME, loc_uploadtimeh, wx.Point(150, 149),
    wx.Size(37, -1), htimeval, wx.CB_DROPDOWN|wx.CB_READONLY)
    self.cbmtime = wxComboBox(self, ID_COMBOBOX_MTIME, loc_uploadtimem, wxPoint(198, 149),
    wxSize(37, -1), mtimeval, wxCB_DROPDOWN|wxCB_READONLY)
    self.cbhtime.SetValue(loc_uploadtimeh)
    self.cbmtime.SetValue(loc_uploadtimem)

    ratioval = ['50', '75', '100', '125', '150','175','200','300', '400', '500']
    self.cbratio = wxComboBox(self, ID_COMBOBOX_RATIO, loc_uploadratio,
    wxPoint(150, 173), wxSize(45, -1), ratioval, wxCB_DROPDOWN|wxCB_READONLY)
    self.cbratio.SetValue(loc_uploadratio)


    Before updating to the latest version the comboboxes showed up fine.
     
    , Apr 15, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bill Nguyen
    Replies:
    0
    Views:
    395
    Bill Nguyen
    Aug 25, 2003
  2. Dag Sunde
    Replies:
    8
    Views:
    3,129
    Andrew T.
    May 10, 2006
  3. Replies:
    11
    Views:
    562
    =?ISO-8859-1?Q?Walter_D=F6rwald?=
    Aug 10, 2005
  4. Andy B
    Replies:
    5
    Views:
    628
    Andy B
    May 29, 2008
  5. Replies:
    5
    Views:
    505
    Roedy Green
    Oct 11, 2012
Loading...

Share This Page