|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
|
Thread Tools | Display Modes |
|
|
|||
Where to begin with GUI as a frontend for command line?
As I'm trying to learn more stuff, I think it would be interesting to learn how to construct a gui for replacing command line tools (which is something I don't wanna do, just for learning purposes).
I know that this question is very general, but where do I begin? I have a first target to build a simple frontend to openssl for encrypting/decrypting files. p.s. I'm not asking for a complete walkthrough, but a guide on -how- to do things and what approach is better and why. I just don't know where to begin. |
|
||||
Check bxpkg which is a graphical GTK frontend for the pkg_* tools, its in the Ports of course.
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
|||
Quote:
Perhaps the simplest cross-platform solution is to learn the Tk extensions to Tcl. This begins a descent into programming solutions, & I don't recall Daffy mentioning any previous programming experience. Depending upon what packages are already installed, Tcl might already be installed in your OpenBSD environment as a dependency to other packages. Many Tcl/Tk tutorials can be found on the Internet. In my opinion, if you are going to begin learning a programming language, learn Python. The Tk extensions (the same mentioned above for Tcl...) are also part of a standard Python installation. wxPython (also available in OpenBSD's package system as py-wxPython...) is a much more robust GUI library available to Python. Some beginning tutorial presentation can be found at the wxPython site: http://wxpython.org/ There are no simple GUI building tools. Constructing an X11 interface requires programming experience. Unless you have already started down this path, don't expect to knock out complicated software in a few nights of dabbling. Programming takes time to master. |
|
||||
Quote:
It implements library to handle ports, and that library does all the dirty stuff. bxpkg doesn't use pkg_* tools at all http://hg.bsdroot.lv/expl/bxpkg |
|
||||
Quote:
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
ocicat, you're right. OpenBSD user here, so I followed your proposal and began reading about wxPython.
For programming experience, again you're right. I have none. I've only read two books for Python, but apart from a dice program (for D&D ) , I've found nothing more to do with it. So I count this as a zero experience. The good thing is that I can follow many things in wxPython's tutorials. Thank you all. Off I go to more tutorials and achieve my first target. |
|
|||
Unfortunately, event-driven GUI programming is frequently not the first topic newcomers delve into when learning a new language.
|
|
||||
Perhaps you can start by building a curses UI using the curses module. This easier than building something with GTK...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
Daffy:
One easy way to bring up some command line utilities from a menu is to use the -e option in xterm. I do this typically with "top" and ncmpc Code:
[Desktop Entry] Version=1.0 Name=NcMpc Comment=NCurses Mpd Frontend Exec=/usr/bin/X11/xterm -e "ncmpc" Icon=/usr/share/icons/gnome/32x32/mimetypes/audio-x-generic.png Terminal=false Categories=AudioVideo;Player; Last edited by shep; 12th August 2011 at 03:45 AM. Reason: Clarified that entry is from Debian |
Tags |
gui |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
matts: a shell script to mail attachments from the command line | J65nko | Guides | 7 | 3rd August 2022 03:13 AM |
command-line-fu (digg like site with UNIX commands) | vermaden | Guides | 3 | 13th March 2009 03:56 PM |
avidemux2 command line | roddierod | FreeBSD General | 1 | 10th November 2008 08:27 PM |
shell: how to take part of the line... | graudeejs | Programming | 8 | 6th September 2008 11:13 PM |
OSS , playing a sound via command line.. | scotsman | FreeBSD General | 7 | 29th August 2008 08:01 PM |