This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"" Custom vim settings | |
"No need to be vi compatible. | |
:set nocompatible | |
"Searching | |
:set incsearch "Turn on incremental searching | |
:set ignorecase "Ignore case when searching | |
:set smartcase "Ignore case when typing lowercase, | |
"otherwise match case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QPushButton = *myButton; | |
myGridLayout->addWidget (myButton, 0, 0, Qt::AlignLeft); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QPushButton = *myButton; | |
myButton = new QPushButton ("button's text"); | |
myGridLayout->addWidget (myButton, 0, 0, Qt::AlignLeft); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myTextEdit->moveCursor (QTextCursor::End); | |
myTextEdit->insertPlainText (myString); | |
myTextEdit->moveCursor (QTextCursor::End); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QTextCursor prev_cursor = myTextEdit->textCursor(); | |
myTextEdit->moveCursor (QTextCursor::End); | |
myTextEdit->insertPlainText (myString); | |
myTextEdit->setTextCursor (&prev_cursor); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Code copied from: http://bit.ly/13yRYU4 | |
#And later modified a bit. | |
from PyQt4 import QtGui | |
from PyQt4 import QtCore | |
from PyQt4.QtCore import pyqtSlot,SIGNAL,SLOT | |
import sys | |
class MyMainWindow(QtGui.QMainWindow): | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install pyqt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo nano ~/.bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### | |
# The path to use the PyQt module and others installed using homebrew | |
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH | |
##### |
OlderNewer