I'll have a look with that went I get making the UI, just need to get  
the majority of the back end up and running first.

Which leads me to my next question, for those of you that use  
Textmate, how do you pass command line arguments to the python script  
from within Textmate when you run it?

This is the code that should read in the values and assign them to  
variables
if __name__ == "__main__":
     if len(sys.argv) != 3:
        print "Arguments: <bootstrap port> <gossip port>"
        sys.exit()

     globals.config['bootstrap_port'] = int(sys.argv[1])
     globals.config['gossip_port'] = int(sys.argv[2])

Cant find a way to pass in values to the sys.argv array from within  
Textmate when you run it.
I have tried to find the answer online but to no avail, any help would  
be great.


Regards
Dave

On 9 Jul 2009, at 01:40, Goncalo Gomes wrote:

>
>
> On Wed, 8 Jul 2009, David Guerin wrote:
>
>> Those other tools with Textmate sound interesting, I tried out  
>> pychecker yesterday, but it gave me a lot of errors, but some of  
>> them were not
>> errors and my code stopped working. So I have kind of stopped using  
>> it already.
>> I'll have a look into the other tools anything that makes life  
>> easier is a must :)
>
> I used the PyQT Designer and it's quite nice. It's probably not an  
> IDE in
> the same sense as Netbeans/Visual Studio, but it allows you to make  
> rich
> and very good looking GUIs which can be saved as an XML file to load  
> from
> python using the PyQT package modules.
>
> As for code writing, I write almost all of my code using vim.  
> Haven't felt
> the need to use anything else, honestly, but I must say the urls  
> mentioned
> before about setting up a python environment for vim were quite an
> interesting read!
>
> Cheers,
> /GG
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Python Ireland" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ie/group/pythonireland?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to