Re: [Tutor] Help

2010-05-14 Thread Steven D'Aprano
On Fri, 14 May 2010 06:08:30 pm she haohao wrote: > Say I have a .fa file and I want to print a subsequence from the file > without the \n how can i do it. > > Example: Inside the test.fa file I have > > >chromosome 1 > > ACTGTGTTC > ACGTCGACC > AVGTT > ACGTTaGTC > > so if I say i wan the subs

Re: [Tutor] [SOLVED] First steps for C++/Qt developers

2010-05-14 Thread M. Bashir Al-Noimi
Thanks Alan, On 15/05/2010 01:51 ص, Alan Gauld wrote: "M. Bashir Al-Noimi" wrote > Although, I personally am a bit biased towards: > http://www.cherrypy.org/ In simple words could you give me what's distinguished differences between cherrypy and django (I didn't stat with django cuz I'm stil

Re: [Tutor] application with tabs

2010-05-14 Thread Luke Paireepinart
Thanks for that info, Alan! It's pretty awesome to have support for a gui that looks native and is also included with Python by default. I'll check it out soon. On 5/14/10, Alan Gauld wrote: > > "Luke Paireepinart" wrote > >> well, but tkinter looks kinda crappy and non-native on almost every >>

Re: [Tutor] First steps for C++/Qt developers

2010-05-14 Thread Alan Gauld
"M. Bashir Al-Noimi" wrote > Although, I personally am a bit biased towards: > http://www.cherrypy.org/ In simple words could you give me what's distinguished differences between cherrypy and django (I didn't stat with django cuz I'm still python principles)? They work a little differently

Re: [Tutor] application with tabs

2010-05-14 Thread Alan Gauld
"Luke Paireepinart" wrote well, but tkinter looks kinda crappy and non-native on almost every platform. Check out the new themed widgets in Tkinter for Python 2.7 and 3.1 They use native platform widgets so don't just look like the native interface they are the native interface... Hello wor

Re: [Tutor] creating distribution lists in outlook

2010-05-14 Thread Alan Gauld
"Pirritano, Matthew" wrote It does seem like the python solution is going to be too labor intensive. As with many such issues I thought it would be a fun challenge to see if I could get it to work. : ) You probably could, but there is another way. Python does not have Outlook's limitations

Re: [Tutor] application with tabs

2010-05-14 Thread Hugo Arts
On Fri, May 14, 2010 at 7:55 PM, Gary Koskenmaki wrote: > Hi, > > > My plan so far was to use tabs for the different functions of the > application such as entering data into the database, viewing data, and > running reports.  I'm running into problems combining tabs with multiple > data fields an

Re: [Tutor] application with tabs

2010-05-14 Thread Luke Paireepinart
On Fri, May 14, 2010 at 12:55 PM, Gary Koskenmaki wrote: > Hi, > > I'm new to any kind of application development, but have done some > python scripting. > > What I'm doing is creating an application for a non-profit social > services organization that will allow them to track the services they >

Re: [Tutor] Help

2010-05-14 Thread Hugo Arts
On Fri, May 14, 2010 at 9:25 PM, Abhishek Mishra wrote: > linear1 = ''.join(foo.split('\n')) linear2 = foo.replace('\n','') > ^^ these are the two ways in which you can linearize the input text by > removing all  '\n' +1 for the replace. More obvious, cleaner, more efficient. Hugo

Re: [Tutor] Help

2010-05-14 Thread Abhishek Mishra
Not sure if I understood the problem exactly, but you could linearize the text by using something like this -- >>> foo = '''ACTGTGTTC ... ACGTCGACC ... AVGTT ... ACGTTaGTC''' >>> foo 'ACTGTGTTC\nACGTCGACC\nAVGTT\nACGTTaGTC' >>> linear1 = ''.join(foo.split('\n')) >>> linear1 'ACTGTGTTCACGT

[Tutor] Help

2010-05-14 Thread she haohao
Hi, I am a beginner in python and I have a problem here and I hope someone can help me. Your help is greatly appreciated. Question. Say I have a .fa file and I want to print a subsequence from the file without the \n how can i do it. Example: Inside the test.fa file I have >c

[Tutor] application with tabs

2010-05-14 Thread Gary Koskenmaki
Hi, I'm new to any kind of application development, but have done some python scripting. What I'm doing is creating an application for a non-profit social services organization that will allow them to track the services they give their clients. My plan so far was to use tabs for the different

Re: [Tutor] First steps for C++/Qt developers

2010-05-14 Thread M. Bashir Al-Noimi
Thanks Steve, On 14/05/2010 11:22 ص, steve wrote: Hello Bashir, On 05/13/2010 08:48 AM, M. Bashir Al-Noimi wrote: Thanks Alan, [...snip...] Oh my god, I finished the basics of python within one day (continues 10 hours)!!! What's amazing language :-* Yes, everyone here feels the same way :).

Re: [Tutor] First steps for C++/Qt developers

2010-05-14 Thread steve
Hello Bashir, On 05/13/2010 08:48 AM, M. Bashir Al-Noimi wrote: Thanks Alan, [...snip...] Oh my god, I finished the basics of python within one day (continues 10 hours)!!! What's amazing language :-* Yes, everyone here feels the same way :). Anyways, now that you have a hang of python and yo

Re: [Tutor] Design Question: File Object used everywhere

2010-05-14 Thread spir ☣
On Fri, 14 May 2010 06:49:59 +0200 Jan Jansen wrote: > Hi there, > > I'm working on a code to read and write large amounts of binary data > according to a given specification. In the specification there are a lot > of "segments" defined. The segments in turn have defintions of datatypes > and

Re: [Tutor] Design Question: File Object used everywhere

2010-05-14 Thread Dave Angel
Jan Jansen wrote: Hi there, I'm working on a code to read and write large amounts of binary data according to a given specification. In the specification there are a lot of "segments" defined. The segments in turn have defintions of datatypes and what they represent, how many of some of the d