我们从Python开源项目中,提取了以下3个代码示例,用于说明如何使用pythoncom.VT_I4。
def GetColumnInfo(self, index): # We support exactly 2 columns - 'pyc size' and 'pyo size' if index in [0,1]: # As per the MSDN sample, use our CLSID as the fmtid if index==0: ext = ".pyc" else: ext = ".pyo" title = ext + " size" description = "Size of compiled %s file" % ext col_id = (self._reg_clsid_, # fmtid index) # pid col_info = ( col_id, # scid pythoncom.VT_I4, # vt commctrl.LVCFMT_RIGHT, # fmt 20, #cChars shellcon.SHCOLSTATE_TYPE_INT | \ shellcon.SHCOLSTATE_SECONDARYUI, # csFlags title, description) return col_info return None # Indicate no more columns.