View previous topic :: View next topic |
Author |
Message |
jerome187 Guru
Joined: 29 Apr 2003 Posts: 584
|
Posted: Sun May 25, 2003 2:41 am Post subject: Shell scripts ---> GUI w/ Qt? |
|
|
Can I use Qt to make QUI's for my shell script? Heres what i have so far (it dosent work right tho)
i know its pathethic, but i'm pretty new at this, so try not to laugh too much
Code: | echo "Hello, welcome to matchstick. You must be root to use this script."
echo "Enter full path of target directory to be burned: "
read $path
cd $path
echo "Enter target directory to be burned: (must add a space and . to the end)"
read $dir
echo "Enter target device (usually 0,0,0 but if unsure open another konsole and execute cdrecord -scanbus)"
read $targetdev
mkisofs -R -J -o $dir
echo "Thank you for using Matchstick!" |
Its only using mkisofs and cdrecord for right now (dont try to use this script it dosent work right) |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
|
Back to top |
|
|
jerome187 Guru
Joined: 29 Apr 2003 Posts: 584
|
Posted: Sun May 25, 2003 4:10 am Post subject: |
|
|
well, is there a way to run other programs (like mkisofs and cdrecord) from C++? |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Sun May 25, 2003 6:06 am Post subject: |
|
|
[quote="jerome187"]well, is there a way to run other programs (like mkisofs and cdrecord) from C++?[/quote]
Yes, but the learning curve for C++ is steep and creating GUIs isn't something you'd be able to tackle until you're proficient in C++. Just take a look at a 'simple' C++/qt application and you'll see quite a bit of code.
You could learn a scripting language in a fraction of the time it would take you to learn C++, so you could write your app in hours instead of weeks. |
|
Back to top |
|
|
jerome187 Guru
Joined: 29 Apr 2003 Posts: 584
|
Posted: Sun May 25, 2003 7:56 am Post subject: |
|
|
i emerged PyQt with no probs but how am i supposed to use it? the progs homepage you posted isnt workin for me.
i cant get PerlQt to emerge tho, but their homepage works
Phooie!! |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Sun May 25, 2003 8:04 am Post subject: |
|
|
jerome187 wrote: | i emerged PyQt with no probs but how am i supposed to use it? the progs homepage you posted isnt workin for me.
i cant get PerlQt to emerge tho, but their homepage works
Phooie!! |
Here's an entire book on pyqt with plenty of sample code to learn from:
http://www.opendocs.org/pyqt/ |
|
Back to top |
|
|
|