projects
/
iramuteq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wxpython 4.2
[iramuteq]
/
sheet.py
diff --git
a/sheet.py
b/sheet.py
index
76fcde2
..
f72ca54
100644
(file)
--- a/
sheet.py
+++ b/
sheet.py
@@
-1,14
+1,19
@@
-#!/bin/env python
# -*- coding: utf-8 -*-
#Author: Pierre Ratinaud
# -*- coding: utf-8 -*-
#Author: Pierre Ratinaud
-#Copyright (c) 2008-2009 Pierre Ratinaud
+#Copyright (c) 2008-2020 Pierre Ratinaud
+#modification pour python 3 : Laurent Mérat, 6x7 - mai 2020
#License: GNU/GPL
#License: GNU/GPL
-
+#------------------------------------
+# import des modules wx
+#------------------------------------
from wx.lib import sheet
from wx.lib import sheet
+# 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
@@
-26,4
+31,4
@@
class MySheet(sheet.CSheet):
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]))