Hi everybody,<br><br>I'm creating my first app (SixA @ <a href="http://www.launchpad/gsixaxis">http://www.launchpad/gsixaxis</a>) and I have gtk.combobox to chose a profile. When a profile is chosen I save the profiles name as a variable, and now I want to combine a command with the variable.<br>
<br>Lets say that the user choses th profile firefox. This should be exactly like running: 'sixa action profile firefox' <br>So the command run by my python script should be something like: 'sixa action profile $profile'<br>
Where $profile is the chosen profile variable.<br><br>Here is the code:<br>    def on_profile_switch_changed(self, box):<br>        model = box.get_model()<br>        index = box.get_active()<br>        if index:<br>            profile = model[index][0] <br>
            os.system("sixa action profile $profile")<br>            prf = pynotify.Notification ("SixA", "Profile changed to $profile", "sixa")<br>            prf.show ()<br><br>As you can see I also have a notifications on when the profile has been changed, which also shows the chosen profile. <br>
How do I do either of these?<br><br><br clear="all">/Daniel Holm<br><a href="http://www.danielholm.se">http://www.danielholm.se</a><br>