projects
/
iramuteq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
windows
[iramuteq]
/
sheet.py
diff --git
a/sheet.py
b/sheet.py
index
c4fbd69
..
f72ca54
100644
(file)
--- a/
sheet.py
+++ b/
sheet.py
@@
-1,15
+1,19
@@
-#!/bin/env python
# -*- coding: utf-8 -*-
#Author: Pierre Ratinaud
# -*- coding: utf-8 -*-
#Author: Pierre Ratinaud
-#Copyright (c) 2008-20
09
Pierre Ratinaud
-#
Lisense: GNU/GPL
-
+#Copyright (c) 2008-20
20
Pierre Ratinaud
+#
modification pour python 3 : Laurent Mérat, 6x7 - mai 2020
+#License: GNU/GPL
+#------------------------------------
+# import des modules wx
+#------------------------------------
from wx.lib import sheet
from wx.lib import sheet
-import wx
+
+# utilisé seulement dans layout.py
class MySheet(sheet.CSheet):
class MySheet(sheet.CSheet):
+
def __init__(self, parent):
sheet.CSheet.__init__(self, parent)
self.parent=parent
def __init__(self, parent):
sheet.CSheet.__init__(self, parent)
self.parent=parent
@@
-21,15
+25,10
@@
class MySheet(sheet.CSheet):
event.Skip()
def Populate(self,content):
event.Skip()
def Populate(self,content):
- c=0
- for r in content:
- c+=1
nrow=len(content)
nrow=len(content)
- print 'nrow', nrow
self.SetNumberRows(nrow)
ncol=len(content[1])
self.SetNumberRows(nrow)
ncol=len(content[1])
- print 'ncol',ncol
self.SetNumberCols(ncol)
for y in range(0,nrow):
for i in range(0,ncol):
self.SetNumberCols(ncol)
for y in range(0,nrow):
for i in range(0,ncol):
- self.SetCellValue(y,i,str(content[y][i]))
\ No newline at end of file
+ self.SetCellValue(y,i,str(content[y][i]))