Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Help with combobox being invisible after upgrading python

Reply
Thread Tools

Help with combobox being invisible after upgrading python

 
 
molitar@hotmail.com
Guest
Posts: n/a
 
      04-15-2004
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combobox Project: How to put 4 text items in the combobox christopher.m.lusardi@gmail.com Java 5 10-11-2012 09:29 PM
Making 1 control invisible while showing another in the exact location of the invisible one Andy B ASP .Net 5 05-29-2008 03:08 AM
Invisible - Succinic acid : (AMBER ACID) Invisible krithika.143@gmail.com C++ 0 04-14-2008 06:59 PM
Javascript call to invisible applet fails after upgrading to 1.5 (IE) Dag Sunde Java 8 05-10-2006 12:03 AM
Syntax error after upgrading to Python 2.4 frr@easyjob.net Python 11 08-10-2005 06:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57