# `QDataExportDialog`

digraph inheritance0f581fc5f1 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "QDataExportDialog" [URL="#taurus.qt.qtgui.panel.QDataExportDialog",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="This creates a Qt dialog for showing and exporting x-y Ascii data from one"]; "QDialog" -> "QDataExportDialog" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QDialog" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QDialog(parent: QWidget|None = None, flags: Qt.WindowFlags|Qt.WindowType = Qt.WindowFlags())"]; "QWidget" -> "QDialog" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QObject" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QObject(parent: QObject|None = None)"]; "wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QPaintDevice" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QPaintDevice()"]; "simplewrapper" -> "QPaintDevice" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QWidget" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QWidget(parent: QWidget|None = None, flags: Qt.WindowFlags|Qt.WindowType = Qt.WindowFlags())"]; "QObject" -> "QWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QPaintDevice" -> "QWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "simplewrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "wrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class QDataExportDialog(parent=None, datadict=None, sortedNames=None)

  This creates a Qt dialog for showing and exporting x-y Ascii data from one or more curves The data sets are passed (by calling setDataSets() or at instantiation time) as a dictionary:

      datadict={name:(x,y),...}

  where name is the curve name and x,y are iterable containers (e.g., lists, tuple, arrays…) of data to be exported

  Import from `taurus.qt.qtgui.panel` as:

      from taurus.qt.qtgui.panel import QDataExportDialog

  allInMultipleFiles = 'All set in multiple files'
  allInSingleFile = 'All sets in a single file (table like)'
  exportAllData(preffix=None)

    Exports all sets using a common preffix and appending ‘XXX.dat’, where XXX is a number starting at 001 if preffix is not given, the user is prompted for a directory path

  exportCurrentData(set=None, ofile=None, verbose=True, AllowCloseAfter=True)

    Exports data

    Parameters:

      - set – the curve name. If none is passed, it uses the one selected by dataSetCB

      - ofile – output file name or file handle. It will prompt if not provided

      - verbose – set this to False to disable information popups

      - AllowCloseAfter – set this to false if you want to ignore the checkbox in the dialog

  exportData()
  loadUi(filename=None, path=None)
  onDataSetCBChange(key)
  setDataSets(datadict, sortedNames=None)

    Used to set the sets that are to be offered for exporting. It overwrites previous values.

  setXIsTime(xIsTime)
  updateText(key=None)

    update the text edit that shows the preview of the data

  xIsTime()