Advertisement
Guest User

Untitled

a guest
Jul 29th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1.  
  2. #!/usr/bin/env python2
  3.  
  4. # api v2
  5. import sip
  6. sip.setapi('QString', 2)
  7. sip.setapi('QVariant', 2)
  8.  
  9. from PyQt4.QtGui import *
  10. from PyQt4.QtCore import *
  11. import re,os,sys
  12.  
  13. class MyQComboBox(QComboBox):
  14.     def __init__(self, parent=None, listing=None):
  15.         super(MyQComboBox, self).__init__(parent)
  16.        
  17.         if listing != None:
  18.             self.listSetup(listing)
  19.        
  20.     def listSetup(self, listing):
  21.         self.setEditable(True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement