Site: Home | LnBlog | The Joy of ROX | LinLog

The Joy of ROX: Main | News | Software | Wrappers and Resources | Contact

Software: ROX-Menu | ROX-MMS | PyMessage | Trash | Patches

Go to: About | Features | Download

About PyMessage

pymessage PyMessage is a ROX-centric replacement for gxmessage. In case you've never heard of it, gxmessage is a replacement for xmessage. If you've never heard of that, you're probably not alone. Xmessage is one of the standard X11 programs. It just pops up a message box with a message and set of buttons specified by the user and then returns an exit code based on the button that was pressed. Gxmessage does pretty much the same thing, except it's based on GTK+. In addition, gxmessage adds a few nifty features, including the ability to put a text input box in the message box, allowing you to prompt the user for a string. I found this particular ability to be perfect for writing ROX AppDir wrappers for command-line based programs. The only problem is that not everyone has gxmessage, and it's written in C, so it's a pain to distribute with a simple wrapper.

That's why I decided to write pymessage. It's written in Python, so there's no hassle with compiling a program just to run a wrapper. It also relies only on ROX-Lib2 and PyGTK, which most systems running a ROX desktop have, thus obviating dependency problems. You can just drop a few small files into the AppDir and you're all set. It also has more features than gxmessage, so it'll be more useful for AppDir wrappers. Noli, however, that pymessage makes no attempt to be compatible with xmessage or gxmessage. While some of the options are similar, none are exactly the same, so it isn't a drop-in replacement.


PyMessage has the following features:


Download PyMessage 0.2.1.

Requirements: PyMessage requires ROX-Lib2, which in turn requires Python, GTK+, and PyGTK.

The message box in the image was generated using the following command line:

pymessage --buttons '_Yes:YES:0,_No:NO:1' --title 'Praise' --entry='PyMessage just rocks!' --default='_Yes' "Isn't pymessage just great?"