Category: Programming

Empty rows in a QTableWidget with lots of images

Empty rows in a QTableWidget with lots of images

To be fair, I don’t know if it’s so many images or so many rows that cause a QTableWidget to show empty rows (or cellwidgets and TableWidgetItems not to appear, however you want to...

macdeployqt output

PyQt and py2app: Seriously I don’t know what to do with you when you’re like this

OK. For some crazy reason I needed to display jpegs in my python application. I know! I am a wild woman! Somebody get me chamomile and sweatpants! I’m going to spend a while telling...

Fun with PyQt — Setting alignment of all paragraphs in a QTextEdit

Fun with PyQt — Setting alignment of all paragraphs in a QTextEdit

Hey, kids! You wanna center-align all the text in a Text Edit input? You might have noticed that QTextEdit.setAlignment() only applies the new alignment to the current paragraph. You may also have noticed there’s...

PyQt: Seriously what are you doing

PyQt: Seriously what are you doing

Oh, QTableWidgetItem. Why don’t you have a mouseReleased method? Or a rightClicked() signal? I sure would like you to listen to right-clicks, but you do not. I tried adding a cellWidget (instead of an...

PyQt4: I hate you

PyQt4: I hate you

No, that’s not true… if I didn’t love Qt Designer and python so much, I wouldn’t tolerate PyQt, so I must secretly love PyQt. UGH BAD LOVE. And py2app is like the foul-smelling friend...

Silent Printing from Java

Silent Printing from Java

Hey. Are you having trouble printing from Java? Do you have a perfect PDF — maybe one you made with iText — but when you print it the edge is cut off? And you...

How Software Development is like Drug Dealing

How Software Development is like Drug Dealing

So I`m going back to school. As an undergraduate, again, which is weird, and makes me think, oh crap, have I gone through a wormhole to 1996? I don’t want to write static HTML...

%d bloggers like this: