473,549 Members | 3,109 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
3
2,969
thread by: drd0s | last post Nov 30 '12 by: bvdet
I have a file ( size : 20 mb | binary file ) that needs to be parsed every 820 bytes and that very content of 820 saved into a new file with the name of the file being the string(ASCII) between the 2byte and the 16byte mark. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ^ THE FILENAME COMES FROM HERE ^ Ok now that the challenge is...
1
2,115
thread by: hidayet | last post Nov 30 '12 by: dwblas
Hi dear friends, I want to send a list that I have in the main function to another one. is it possible? can i send a list from one function to another, if so, can you please explain. I really appreciate that. Best Hidayet
2
5,974
thread by: MR 010 | last post Nov 30 '12 by: bvdet
hello : This is my code : ------------------------------------------ while True : try: ' enter the coefficients of the equation :' a=input('a=' )
2
2,036
thread by: ChaitraMahesh | last post Nov 27 '12 by: dwblas
Hi I want to open a file, by selecting a button and then come out by clicking the quit button in the same dialog box can you help me with the code
1
2,202
thread by: wasp | last post Nov 27 '12 by: dwblas
Using the code below I need to make a movie of a new function Sunrise it should: (A) Cause the sun to come up from behind the horizon up into the sky. The horizon line is a black line at the common edge of the sky and the ground. (B) As the sun comes up, the sky must change from black to cyan and the ground from dark gray to orange. It should be...
1
2,453
thread by: crashhold | last post Nov 26 '12 by: bvdet
Hello Developers, I am a beginner in python and need help with writing a regular expression for date and time to be fetched from some html documents. In the following code I am walking through the html files in a folder called event and printing the headings with h1 tag using beautifulsoup. These html pages also contains different formats of...
0
1,821
roberttonafelix
thread by: roberttonafelix | last post Nov 26 '12 by: roberttonafelix
Hi, I am using the below code for the receiving messages from the rabbitmq server... The program was working fine but in the consuming part i don't need to consume continuously instead i required a to consume a message by message. import pika import os import time
6
7,931
gesqo
thread by: gesqo | last post Nov 23 '12 by: gesqo
I have a column of some hundreds rows, obtained by a python program,each cell containing 4 unequal (in length) strings,like: adfhyhh ihhgfdtykk red piuol How can I split it with python in 4 colomns,with each cell containing one string? Thanks.
4
2,160
thread by: stadala | last post Nov 23 '12 by: dwblas
I have the below scenario Search Function (Could be Fwd/Reverse Direction) Ex: 2-6-281651 (Start-Offset-Value) or 2-6-"281-651" I was able to create code based on the split delimiter as (-), but if my search string has - in it, how can we handle. I can change the delimiter, but what if the new delimiter is part of the string, i can make...
0
1,579
al san
thread by: al san | last post Nov 22 '12 by: al san
Hello, please, let me start by thanking everyone on this site for all your wonderful support! Now, please, allow me to move on to my issue. I'm trying to find my feet in matpotlib/Tkagg. For the moment,I'd really appreciate if someone out there would kindly show me how to add xticks (text) to the bottom of the bars inside a tkagg window. The...
7
6,355
thread by: kttr | last post Nov 21 '12 by: kttr
I would like to "press" a button on a webpage using a python script. When I say "press", I mean I would like to initiate all of the actions that would occur if you were to press the button with a mouse. Here is the html code for the button: <input type="button" name="ctl00$MainPlaceHolder$submitOrder" value="Submit Order >>" ...
5
9,758
thread by: kttr | last post Nov 21 '12 by: kttr
I have been teaching myself python for the past year. I have run out of ideas for programs in python. Does anyone have any cool or interesting programs that you could make with python?
1
1,748
thread by: mikaroo | last post Nov 20 '12 by: zmbd
My computer have a problem of startup,it always tells me library pythondll failed.So how do I fix it?
0
1,629
thread by: biscayne | last post Nov 13 '12 by: biscayne
When trying to load csv file data into Scribus it only takes the data of the last row. I'm using ScribusGenerator.py by Ekkehard Will and my best guess is that the cause of the problem somewhere in this part of the code: def replaceVariablesWithCsvData(self, headerRow, row, lines): # lines as list of strings result = '' for...
1
25,507
thread by: Ashen | last post Nov 11 '12 by: bvdet
how to get the middle number when, 1.the list have even number of values 2.the list have odd number of values
0
1,488
thread by: tothgy12 | last post Nov 10 '12 by: tothgy12
Hi Everybody, I am a radio engineer who try making own working life easier by Python codes. In last time I used telnetlib to communicate to special shell of radio equipments. Everything is sunny until I apply any shell command which generates answer of more lines. For example: The next part of code gives back the correct part number of...
0
1,481
thread by: greenpy | last post Nov 9 '12 by: greenpy
I am using for python 2.7 on windows. I am trying to build a test editor with tkinter. I make a 90% percentage of my application. Now i need your help. When we open a .txt file the text editor open and display that text. I want open my application with like this. I know how will set it with windows cmd. I do it with the following code in cmd....
1
5,388
thread by: greenpy | last post Nov 9 '12 by: bvdet
I am using python 2.7 on windows 7. I am trying to show a video in tkinter. I get a tkinter widget named tkvideo from "http://tkvideo.berlios.de/" . But i can't add that widget to tkinter. Tkvideo docs only saying that copy tkvideo widget file to tcl folder. I do it. But widget is not working. Please give a solution for this problem or give a...
1
4,351
thread by: greenpy | last post Nov 8 '12 by: bvdet
I am using python 2.7 on windows 7. Drawing is wonderful in tkinter canvas widget. Now i need draw 3D objects in tkinter and make a z cords in tkinter. I know tkinter have only x and y cords. I try so. But i get errors
2
9,774
thread by: TalHuang | last post Nov 7 '12 by: TalHuang
Why this code return error AttributeError: 'tuple' object has no attribute 'join' Any help will be appreciated; Thanks import string
3
1,945
roberttonafelix
thread by: roberttonafelix | last post Nov 1 '12 by: bvdet
hi, In a folder there are 10 files, in that 3 files are in used by another process i want to pick only the files which was in not in use.... If the Python script is available kindly share with me... Thanks in Advance, Robert.J
2
3,977
Jory R Ferrell
thread by: Jory R Ferrell | last post Oct 29 '12 by: Jory R Ferrell
The following attachments may help better than my own description. CTypes_1 is a picture of the python code calling the function from the DLL. CTypes_2 is the code contained within the DLL. (Before compilation of course. The actual DLL looks nothing like this.) CTypes_3 is the DLL located in the directory I am calling it from during...
1
3,123
thread by: greenpy | last post Oct 28 '12 by: dwblas
i try to use all fonts in tkfont. But some fonts are not working. I must use tt fonts in tkfont please give a solution
3
3,210
thread by: argbsk | last post Oct 27 '12 by: zmbd
Below is the dictionary {0: ACC_diff.log\n'], 1: BACKUP_diff.log\n'], 2: }
0
1,439
thread by: phub11 | last post Oct 24 '12 by: phub11
Hi, I have 3 columns, the first is text, the second are checkbuttons, and the last are comboboxes. Could someone tell me how I can populate the comboboxes using only data added to the child list? Below is the code I have so far: treestore = gtk.TreeStore(str, bool) for imol in molecule_number_list(): mol_name = molecule_name(imol)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.