PyANGGui.DialogSnipper¶
- class DialogSnipper¶
Base class for snipping of dialogs
Synopsis¶
Methods¶
def
__init__()def
clickButton()def
drawGEHArea()def
drawGraphLine()def
enableGrid()def
getButtonNames()def
getComboNames()def
resize()def
setCheckBox()def
setCombo()def
setGraphTitle()def
setGraphXLabel()def
setGraphYLabel()def
setTabByName()def
setTimeEdit()def
toImage()def
toggleButton()
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
Instantiate Dialog Snipper for an Aimsun object
- __init__(dialog)
- Parameters:
dialog –
QDialog
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
Get a coma-separated list with all the button names
Get a coma-separated list with all the check-box names
Get a coma-separated list with all the combo names
Get a coma-separated list with all the time-duration names
Get a coma-separated list with all the time-edit names
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:
editName – str
duration –
GKTimeDuration
Set the time-duration with editName to duration
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