Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!

try:
index = self.list.GetFirstSelected()
self.date = self.list.GetItemText(index)
except:
print 'error'
try:
result = avgall / allweight
except ZeroDivisionError, info:
print info
self.data.append(str(result)) # Вот здесь ругается.
def get_cols(self, table):
try:
cursor = cx_Oracle.Cursor(self.connection)
sql = ("select t.COLUMN_ID, t.COLUMN_NAME from all_tab_columns t where t.TABLE_NAME=\'%s\' order by t.COLUMN_ID") % table
cursor.execute(sql)
cuu=cursor.fetchall()
cursor.close()
col_names = [i[1] for i in cuu]
except (NameError, cx_Oracle.DatabaseError), info:
error = ("Database Error: %s" % info)
wx.MessageBox(str(error))
return col_names # Здесь ругается self.columns = self.main.main_stat_columns
for col, text in enumerate(self.columns):
self.list.InsertColumn(col, text)
for item in rows:
info = '%s:(%s)' % (col, item)
data.append(info)
def show_help(self, event):
frame = help_frame.help_frame()
frame.Show()
for x in val:
if x not in string.digits:
return False
app = wx.PySimpleApp()
dlg = MyDialog()
dlg.ShowModal()
dlg.Destroy()
app.MainLoop()
def OnExit( self, event ):
self.Destroy()
def OnExit( self, event ):
self.Destroy()
event.Skip()
wx.ALL # and etc. Все компоненты wxPython, за исключением wx.Frame and etc.
Вышел новый PyCharm 2.1 Early Access Preview