psyke83
November 8th, 2009, 09:37 AM
Hey folks,
I'm wondering if anybody can lend some assistance. I recently delved into Python (specifically PyGtk) programming in order to create an interface for my PulseAudio Equalizer (bash) script. I've completed the first version of the GUI, which is perfectly functional (but very hacky ;)).
This is a basic overview of the components that the Equalizer uses:
pulseaudio-equalizer.sh - bash script that does most of the heavy lifting;
pulseaudio-equalizer.py - Python/PyGtk GUI that interfaces with the bash script;
$SOMEPATH/presets/*.preset - these will be text files containing 15 values corresponding to the 15 LADSPA plugin controls, separated by "\n" newlines (because it was the easiest format to parse in Python with my beginner's understanding). The GUI's "Preset" CombBox will populate itself based on the presets available.
I have looked at the PackagingFromScratch (https://wiki.ubuntu.com/PackagingGuide/Complete#Packaging%20from%20Scratch) guide and it doesn't seem relevant to my needs, since a) it expects a vanilla source to work with, and b) I don't require anything to be compiled (since both of the scripts are interpreted).
With that in mind, I grabbed the debian source of "gufw" (why? Because it's small, and appears to be based on Python as well), took a copy of the debian/ directory and hand-edited all the files to suit my needs.
I'm attaching the results (the packed & unpacked source, and built .deb). Note that the .deb file builds without any problems, installs without problems, and the python script, bash script and presets install and work correctly. The only problem is that the menu item is not registering properly.
Any help would be appreciated :)
P.S. If anyone can suggest a better guide that would more suitable to my needs, I'd also be interested in knowing.
I'm wondering if anybody can lend some assistance. I recently delved into Python (specifically PyGtk) programming in order to create an interface for my PulseAudio Equalizer (bash) script. I've completed the first version of the GUI, which is perfectly functional (but very hacky ;)).
This is a basic overview of the components that the Equalizer uses:
pulseaudio-equalizer.sh - bash script that does most of the heavy lifting;
pulseaudio-equalizer.py - Python/PyGtk GUI that interfaces with the bash script;
$SOMEPATH/presets/*.preset - these will be text files containing 15 values corresponding to the 15 LADSPA plugin controls, separated by "\n" newlines (because it was the easiest format to parse in Python with my beginner's understanding). The GUI's "Preset" CombBox will populate itself based on the presets available.
I have looked at the PackagingFromScratch (https://wiki.ubuntu.com/PackagingGuide/Complete#Packaging%20from%20Scratch) guide and it doesn't seem relevant to my needs, since a) it expects a vanilla source to work with, and b) I don't require anything to be compiled (since both of the scripts are interpreted).
With that in mind, I grabbed the debian source of "gufw" (why? Because it's small, and appears to be based on Python as well), took a copy of the debian/ directory and hand-edited all the files to suit my needs.
I'm attaching the results (the packed & unpacked source, and built .deb). Note that the .deb file builds without any problems, installs without problems, and the python script, bash script and presets install and work correctly. The only problem is that the menu item is not registering properly.
Any help would be appreciated :)
P.S. If anyone can suggest a better guide that would more suitable to my needs, I'd also be interested in knowing.