473,544 Members | 2,322 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.
0
1,437
thread by: SurekhaP | last post Dec 26 '11 by: SurekhaP
I am trying to develop telnet application using python. I am making use of telnetlib library for creating client and Socket/ SocketServer library for creating server application The open() method(used for establishing connection with server socket) from telnet library is not able to connect to the server which is successfully listening for...
1
10,257
thread by: naveed ahmad | last post Dec 29 '11 by: bvdet
How I debuge this error?
3
3,110
thread by: suppoor | last post Dec 30 '11 by: Glenton
Hello every one , I am writing a code to generate huge transition matrix (2 order markov and one order markov) here are my question : 1) is there any available source for efficiently generating mrrkov transition matrix ONLY ? 2) I have around 800000 nodes so what could be a better way to create such a huge structure ---> i am looking...
0
1,565
thread by: Dave750 | last post Dec 30 '11 by: Dave750
I am using speech.py for a voice recognition project and it works great and is very simple. The only problem is that I want to turn off the Windows commands that come with it, IE "Start Menu" or "Show Desktop". It will run full-screen and I don't want a user to get out of my software and into Windows. Does anyone know how to do this?
4
1,297
thread by: nazish zehra | last post Dec 31 '11 by: nazish zehra
I am using tkinter to make a gui and then converting it to .exe using py2exe.My gui also includes .gif images. Code I am using in setup.py is: from distutils.core import setup import py2exe setup(console=) i run the following command from console: python setup.py py2exe
0
1,548
thread by: marcin19962 | last post Dec 31 '11 by: marcin19962
Hi, i have a problem - everytime when i want to reciv data from the UDP socket - the program is freezing. how can i make Receiving data from UDP socket and by using append function add received data into textEdit widget ? Can anyone give me tutorial or example for this?
5
72,134
thread by: amine1978 | last post Jan 3 '12 by: Glenton
please I would like to write a fonction that takes as argument a matrix, 2 integers describing a cell coordinate and a value that set the corresponding cell to the value????????? please help me
1
2,632
thread by: Rowen Bibo | last post Jan 3 '12 by: bvdet
I keep getting load library(pythond11) faied when I log on. I have tried to correct this but to no avail please advise what is going on.
0
1,135
thread by: kaf3773 | last post Jan 4 '12 by: kaf3773
I need help trying to execute this SQL statement on an oracle database via python. select switch,switch||'-'||tkg_name as tkg_name,(date_time - to_date('01-JAN-1970','DD-MON-YYYY')) * (86400)as date_time,percent_occupied from Table_name where tkg_name in ('AB65UT','LIY870','IUY890') and trunc(date_time) between '21-DEC-11' and '27-DEC-11'; ...
7
14,891
thread by: Amad Khan | last post Jan 4 '12 by: bvdet
Hello Everbody, Hopefully you all are fine. Question: I have few html files (invoices) at a directory. What i required is read html contents (customer name,bill_no,dues etc) and store them in a .csv file... I have an already existing parser (attached parser.sh) which is working fine. Please help me in converting my existing shell...
2
1,410
thread by: SurekhaP | last post Jan 5 '12 by: dwblas
Hi all, I am using wxPython for creating GUI. Suppose we have 2 buttons, one for 'CONNECT' and the other for 'DISCONNECT' in some telnet application. There is no point in having the 'DISCONNECT' button active before 'CONNECT' button is pressed and the connection is established. So, we may need to make a button active/inactive based on our...
12
14,436
thread by: maximus tee | last post Jan 6 '12 by: Glenton
i want to extract certain section of the text file. my input file: -- num cell port function safe "17 (BC_1, CLK, input, X)," & "16 (BC_1, OC_NEG, input, X), " &-- Merged input/ " 8 (BC_1, D(8), input, X)," & -- cell 16 @ 1 -> Hi-Z " 7 (BC_1, Q(1), output3, X, 16, 1, Z)," & " 0 (BC_1, Q(8), output3, X, 16, 1, Z)"; and i...
6
2,208
thread by: moroccanplaya | last post Jan 8 '12 by: moroccanplaya
hi i can print out the website source code but i cant store whats been read in a variable as a string so is there away of doing this? with urllib.request.urlopen(path) as url: sourcecode = url.read() print(sourcecode)#prints source code sourcecode = storecode #i cant do this???
2
1,336
thread by: larryg | last post Jan 9 '12 by: bvdet
Setting up a file indexing system to find certain positions Example 00 a1 00 09 I want to search for all files that have 00 in position 1,2 or to find 09 in position 10,11 Positions 1 2 3 4 5 6 7 8 9 10 11 ...
2
1,881
thread by: moroccanplaya | last post Jan 12 '12 by: moroccanplaya
hi i want to know how i would go about highlighting specfic charchaters in python for exaple: string = " help me highlight" i would like to find all the "h" in that string are located is there any modules or functions that can help with this
5
2,157
Jory R Ferrell
thread by: Jory R Ferrell | last post Jan 13 '12 by: bvdet
I will be using python 3 (comp is currently broken so I can't test examples) btw. Do I need to create the timer function as a separate thread and create a event-driven interruption in the main loop which reacts to the timer? Or is there a simpler way to create the timer INSIDE the main loop that I'm too retarded to think of? :P
2
2,374
thread by: mark farid | last post Jan 16 '12 by: Jory R Ferrell
I am trying to write a really basic program based on a trivia game. i have two problems. the first, is that i do not know how to assign a variable whose value will increase with time. my second problem is that i need to allow the user to enter an input before time runs out. the problem is that: suppose i successfully start a stopwatch once the...
8
6,210
thread by: kaf3773 | last post Jan 16 '12 by: bvdet
I am trying to output a list to a csv file and the line below work fine. I need help with changing the delimiter from the default comma(,) to tab delimited. csv_file = open('output.csv', 'w') csv_writer = csv.writer(csv_file) Help very much appreciated Kaf
11
10,966
thread by: nazish zehra | last post Jan 18 '12 by: dwblas
I am making a label containing a gif image.Image is not displayed and program gives the following error : Exception in Tkinter callback Traceback (most recent call last): File "C:\Python26\lib\lib-tk\Tkinter.py", line 1410, in __call__ return self.func(*args) File "D:\7th sem\abiabi\pythoproj2\toplevelchanges.py", line 114, in about...
1
1,593
thread by: poonam hoshi | last post Jan 18 '12 by: dwblas
how can i encrypt a whole database in postgresql? and can integer type data and date type be also encrypted by using pgp_sym_encrypt?
3
6,568
Jory R Ferrell
thread by: Jory R Ferrell | last post Jan 19 '12 by: bvdet
neuron = Neuron(neuron1, random.uniform(1, 10), 3) my_Data = condition_Input(my_Data_1) output = neuron.input_Func(my_Data) I can't figure out why the sys keeps saying I have given two positional arguments in the method call to input_Func...
1
3,771
thread by: aliraza376 | last post Jan 19 '12 by: dwblas
import psycopg2 import os.path conn = psycopg2.connect("dbname=overlapanalysis user=postgres") cur = conn.cursor() cur.execute("select * from annotation(5,-10000,-10000) ") result=cur.fetchall() for columns in result:
3
1,894
Jory R Ferrell
thread by: Jory R Ferrell | last post Jan 23 '12 by: Jory R Ferrell
I need to assign lists containing class objects to a key (so i can create var names for a user defined numb of objts). I tried appending to the key of a list and couldnt get it to work. How would i manipulate objects when i rely on a dictionary to refer to them? :/
1
1,763
Jory R Ferrell
thread by: Jory R Ferrell | last post Jan 23 '12 by: bvdet
"while relying on...." :P Anyways... Basically I am starting off with a user defined number of variables. For each object needed, I 'assign a variable' by using the key of a dictionary. How do I use object references, append to list and what not, if i am relying on a dictionary to call it? dict = {1:, 2:classObj1, 3:classObj2}
5
2,123
thread by: moroccanplaya | last post Jan 23 '12 by: bvdet
hi i have i open a url using urllib.request.urlopen then store the source code by using url.read to a variable and i paste the source code into the tkinter text widget but how do you keep the same format ?? with urllib.request.urlopen(path) as url: sourcecode = url.read() global storecode storecode = sourcecode ...

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.