- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
11 Posted Topics
I think that you should start by seeing if the db you wish to use is supported in python. I use the sqlite db. Python docs describes the support and provides a tutorial [URL="http://http://docs.python.org/library/sqlite3.html"]
[CODE]import Tkinter as tk # (x1, y1, x2, y2, ...) data = (100,100,200,300,35,495,450,45) root = tk.Tk() canvas = tk.Canvas(root, height = 500, width = 500) canvas.pack() canvas.create_line(data, fill = 'red') root.mainloop()[/CODE] you will need to adjust (normalize?)your data to fit within the pixel-limits of the screen. That is at least …
Your project sounds like fun. rather than using buttons you might explore the canvas widget. I find that the canvas is more flexible than working with buttons/frames. With buttons you can use pack|pack_forget to display and hide them but I can't think of a way to stack images.
An answer to your question will be, i assume, dependent on the gui package you are using.
I have registered a new Tkinter module @ pypi. tkPickaColor is a dialog intended for Linux coders to provide a more full featured color chooser than is now available. I say for Linux coders since a better chooser is already available on the MS Windows side. It seems to be …
here are several to consider... I use [B]Eric4[/B] for most of what I write, It has a wealth of features. The major downside is the almost complete lack of documentation. [B]Ipython[/B] is great for testing small bits of code. it has a wealth of secialized features for reusing lines of …
not sure what you mean but have you tried using int() to convert a string?
I assume you are working in a GUI. Which One. do you have any sample code?
Please provide an example of your input sentence and what you want the output to be.
I'm assuming that there is some background information that a non-biologist should know before staing with the script. Is a "base pair" an AT, TA, GC, or CG? Are you to search the input strings "GAATTC", "AAGCTT" for the occurance of one of the base pairs?
I believe there may be two problems. [I]Results[/I] appears to be undefined within the function. Either pass in [I]results[/I] as an argument or use [I]self.results.[/I] (The original definition of results should also be made in the method above. Secondly, the syntax of the pysqlite statement appears to be incorrect try.. …
The End.
strider1066