python - Combobox unable to display 2-digits in a line -



python - Combobox unable to display 2-digits in a line -

there comboxbox in ui did displays values of 1 10.

class settingscombo(qtgui.qcombobox): values = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] def __init__(self): qtgui.qcombobox.__init__(self) item in settingscombo.values: self.additems(str(item))

however, when execute code, number 10 displayed in 2 lines - 1 in line , 0 displayed in other line

any ideas?

qcombobox.additems (self, item)

dont add together each item .pass total list it

class settingscombo(qtgui.qcombobox): values = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] def __init__(self): qtgui.qcombobox.__init__(self) self.additems(map(str,settingscombo.values))

python combobox pyqt

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -