File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
__import__ ('pkg_resources' ).declare_namespace (__name__ )
3
- __version__ = '0.1.1 '
3
+ __version__ = '0.1.2 '
4
4
5
5
#__all__ = ["DataFrameModel", "CustomDelegates", "DtypeComboDelegate"]
6
6
from DataFrameModel import DataFrameModel
Original file line number Diff line number Diff line change @@ -180,10 +180,10 @@ class CSVImportDialog(QtGui.QDialog):
180
180
Attributes:
181
181
load (QtCore.pyqtSignal): This signal is emitted, whenever the
182
182
dialog is successfully closed, e.g. when the ok button is
183
- pressed.
183
+ pressed. Returns DataFrameModel and path of chosen csv file.
184
184
"""
185
185
186
- load = QtCore .pyqtSignal ('QAbstractItemModel' )
186
+ load = QtCore .pyqtSignal ('QAbstractItemModel' , str )
187
187
188
188
def __init__ (self , parent = None ):
189
189
"""Constructs the object with the given parent.
@@ -412,7 +412,7 @@ def _loadCSVDataFrame(self):
412
412
"""Loads the given csv file with pandas and generate a new dataframe.
413
413
414
414
The file will be loaded with the configured encoding, delimiter
415
- and header.
415
+ and header.git
416
416
If any execptions will occur, an empty Dataframe is generated
417
417
and a message will appear in the status bar.
418
418
@@ -464,7 +464,7 @@ def accepted(self):
464
464
if model is not None :
465
465
df = model .dataFrame ().copy ()
466
466
dfModel = DataFrameModel (df )
467
- self .load .emit (dfModel )
467
+ self .load .emit (dfModel , self . _filename )
468
468
self ._resetWidgets ()
469
469
self .accept ()
470
470
You can’t perform that action at this time.
0 commit comments