Skip to content

Instantly share code, notes, and snippets.

@Carreau
Created February 28, 2012 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Carreau/1930794 to your computer and use it in GitHub Desktop.
Save Carreau/1930794 to your computer and use it in GitHub Desktop.
Minimal crashing example
import sys
from PySide.QtCore import *
from PySide.QtGui import *
##
## ment to segfault in some condition on os-x
## see ipython/ipython #1407
##
# Create a Qt application
app = QApplication(sys.argv)
# Create a Label and show it
s = u'''
sin(x[, out])
Trigonometric sine, element-wise.
Parameters
----------
x : array_like
Angle, in radians (:math:`2 \pi` rad equals 360 degrees).
Returns
-------
y : array_like
The sine of each element of x.
See Also
--------
arcsin, sinh, cos
'''
print(len(s));
g = s[1:12]
label = QLabel()
label.setText(s)
label.show()
# Enter Qt application main loop
app.exec_()
sys.exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment