PyANGGui.DialogSnipper

class DialogSnipper

Base class for snipping of dialogs

Inheritance diagram of PyANGGui.DialogSnipper

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

__init__(iObject)
Parameters:

iObjectGKObject

Instantiate Dialog Snipper for an Aimsun object

__init__(dialog)
Parameters:

dialogQDialog

Instantiate Dialog Snipper for a QDialog

clickButton(buttonName)
Parameters:

buttonName – str

Click the button with buttonName

drawGEHArea(name, gehValue, color, density)
Parameters:
  • name – str

  • gehValue – float

  • color – str

  • density – int

Draw the GEH area for the graph with name

drawGraphLine(name, factor, color, thickness)
Parameters:
  • name – str

  • factor – float

  • color – str

  • thickness – float

Draw a cone with constant factor around the perfect regression line for the graph with name

enableGrid(name, x, y)
Parameters:
  • name – str

  • x – bool

  • y – bool

Enable horizontal and/or vertical grid for the graph with name

getButtonNames()
Return type:

str

Get a coma-separated list with all the button names

getCheckBoxNames()
Return type:

str

Get a coma-separated list with all the check-box names

getComboNames()
Return type:

str

Get a coma-separated list with all the combo names

getTimeDurationNames()
Return type:

str

Get a coma-separated list with all the time-duration names

getTimeEditNames()
Return type:

str

Get a coma-separated list with all the time-edit names

getToolButtonNames()
Return type:

str

Get a coma-separated list with all the tool-button names

resize(x, y)
Parameters:
  • x – int

  • y – int

Resize the dialog to x,y

setCheckBox(checkboxName, value)
Parameters:
  • checkboxName – str

  • value – bool

Set the check-box with checkboxName to value

setCombo(comboName, index)
Parameters:
  • comboName – str

  • index – int

Set combo with comboName to the specified index

setGraphBackGround(name, color)
Parameters:
  • name – str

  • color – str

Set the background of the graph with name to color

setGraphTitle(name, title)
Parameters:
  • name – str

  • title – str

Set the title of the graph with name to title

setGraphXLabel(name, label)
Parameters:
  • name – str

  • label – str

Set the x-label of the graph with name to label

setGraphYLabel(name, label)
Parameters:
  • name – str

  • label – str

Set the y-label of the graph with name to label

setTabByName(iTabName1, iTabName2)
Parameters:
  • iTabName1 – str

  • iTabName2 – str

Set focus on tab with iTabName1, and subtab iTabName2 if any

setTimeDuration(editName, duration)
Parameters:

Set the time-duration with editName to duration

setTimeEdit(editName, time)
Parameters:
  • editName – str

  • timeQTime

Set the time-edit with editName to time (“hh:mm”)

toImage(iFileName, iWidgetName)
Parameters:
  • iFileName – str

  • iWidgetName – str

Create image of dialog if iWidgetName is empty, or the widget with iWidgetName in the dialog if iWidgetName is defined.

toggleButton(buttonName)
Parameters:

buttonName – str

Toggle the button with buttonName