15,406 Topics

Member Avatar for
Member Avatar for Shadow14l

Nvm :/ Please excuse my blindness. Where's the delete topic button at? :( Please excuse it again. ~Shadow14l

0
57
Member Avatar for cwolfraven

Hi. I am totally new to python. I have a problem that I have been trying to solve without any form of solution. I have a group of files in Directory A that are named like: Text__###__TEXT___###.tif These are dummy files. The real files are in Directory B and are …

Member Avatar for Freaky_Chris
0
99
Member Avatar for Shadow14l

I just want a console to run. When I use this function, I don't ever want the automatic tk window to appear. How would I use this function without any gui? *Also on a side note, what is the python code tag? (python)is it this :P?(/python)

Member Avatar for Shadow14l
0
245
Member Avatar for tondeuse34

Hey guys, lately i've been having some trouble with file I/O but usually i don't heres an example of reading a file: [CODE]print "\nReading..." myfile = open('myfile.txt', 'r').read() print "\n",myfile[/CODE] but is there and easier way to do that because when i try to run the program just stops, it …

Member Avatar for tondeuse34
0
113
Member Avatar for hilarybrobbey

I'm trying to create an audio playing program for my final project in my computer graphics class. I'm using tkSnack but i keep on getting this difficult error and i seem not to find any solution. >>> from Tkinter import * >>> root = Tk() >>> import tkSnack >>> tkSnack.initializeSnack(root) …

Member Avatar for Ene Uran
0
83
Member Avatar for sam_only96

hi all! how can we list all directory as well as file(all hirerchical) in python script by giving the path as input

Member Avatar for sam_only96
0
265
Member Avatar for FreezeBlink

[quote] cell.health -= fighters[0].compDmg(fighters[0],cell) TypeError: compDmg() takes exactly 2 arguments (3 given)[/quote] Both fighters[0] and cell are object instances. How on earth does it see 3 arguments in this? I don't think wider context is needed, but just ask if it is.

Member Avatar for bvdet
0
192
Member Avatar for tondeuse34

Hey guys, I've came across problem and wondering say if you have a 2 lists called user_list and pass_list and you have a prompt for username and password. Instead of 1 user name and password how could it be for all can be used at the same prompt? heres an …

Member Avatar for tondeuse34
0
125
Member Avatar for alivip

I write code to get most frequent words in the file I won't to implement bigram probability by modifying the code to do the following: How can I get every Token (word) and PreviousToken(Previous word) and frequency and probability From text file and put each one in cell in table …

Member Avatar for alivip
0
131
Member Avatar for swaroopk85

HI All, I am connecting to a https site through proxy.But when I am trying to do it I am getting Unknown Protocol Error ..Is there any problem in ssl or proxy??? Can anyone help me in this regard???

Member Avatar for a1eio
0
46
Member Avatar for happimani

Dear all, Previously i used Python2.3 now i upgraded to python 2.4 but my problem iam getting error ImportError: No module named pywin.framework.startup what to do ?????? regards Narain

Member Avatar for BearofNH
0
70
Member Avatar for zls11610

i want to define a dictionary in python script i come from china . start to learn python only a week ago e-mail: [email]zls11610@onestx.com[/email]

Member Avatar for praveen_web
0
4K
Member Avatar for SUBHABRATAIISC

If I write a code like: def addstring(n): a1=raw_input("PRINT THE FIRST STRING:") a2=raw_input("PRINT THE SECOND STRING:") a3=" " a4=a1+a3+a2 print "THE TWO STRINGS YOU PRINTED ARE ADDED AS" print a4 Now, if I design one HTML form where strings can be submitted but if I put one ADD button how …

Member Avatar for SUBHABRATAIISC
0
88
Member Avatar for tondeuse34

Is there a function out their in python that you will declare a target i.e. a text box on another open window, and it would print text to that screen? Thanks

Member Avatar for tondeuse34
0
94
Member Avatar for froboi

So i've been attempting to program a home bar tending program that takes materials that you have in your home and compiles a list of drinks that you can possibly make. The problem I'm having is that i have no clue how to make the search function and the compiling …

Member Avatar for jrcagle
0
179
Member Avatar for callie_360

Hi! :) I want to read each line in my file, and determine if each occuring page tag is included in the validPages array...I've gotten everything except when I retrieve a line with a page tag (readLines()), I can't use that line as a string to compare with my array...even …

Member Avatar for woooee
0
125
Member Avatar for Azurea

I've got an issue with lists right now. I've got 2 lists, Checker1 and Checker2, which check for the Ko rule in my game of Go. However, Checker2 should always be checking the board one turn behind Checker1, which checks the board every turn. That way, the Ko rule can …

Member Avatar for Azurea
0
93
Member Avatar for SUBHABRATAIISC

If we write a code like: a=['city','village','town','capital'] a1=len(a) a2=range(a1) for x in a2: a3=a[x] print a3 In this code if we want to store the value of a3 it would store last value always. But in any way can we store all the values?

Member Avatar for Ene Uran
0
87
Member Avatar for Tyrfing

Hello, I am trying to install scipy on Ubuntu 8.0.4LTS, and am having some serious issues. I have succesfully downloaded and installed scipy, but when I try and "import scipy" in a program I am returned: ImportError Traceback (most recent call last) /home/tim/Desktop/scipy-0.6.0/<ipython console> in <module>() /home/tim/Desktop/scipy-0.6.0/scipy/__init__.py in <module>() 52 …

Member Avatar for Tyrfing
0
2K
Member Avatar for happimani

Dear all, Iam installing Python 2.4 version in silent mode msiexec\i "python.msi' \qn but after finishing this i got one error in WIN32.exe installation i enclosed that screenshot in this post,am i correct in my process what are the Actuall steps to implement silent mode installation,,,any idea.............. regards Narain

Member Avatar for jrcagle
0
128
Member Avatar for gotm

i am completely stumped at how to create this program. can anyone help out? here are the guidelines. Introduction Perhaps in no other sport does statistics play as major a role as in the game of Baseball. In fact, certain numbers, such as 56 (length of Joe DiMaggio's hitting streak), …

Member Avatar for jrcagle
0
140
Member Avatar for urmybaby

As basis for the assignment, we use a CSV file named country.csv in which information about countries is recorded. This file is posted on the assignment Web page1. The first line in the file is the header line and describes the content of each column. The first value in a …

Member Avatar for kdoiron
0
86
Member Avatar for tondeuse34

Hey guys, I've started using Tkinter now and I've came across a problem...Here in the code below i just want a drop box style menu to appear and when i click that option, theres more options. When i click for example their would be a box called Addition, you would …

Member Avatar for Capt.Micro
0
121
Member Avatar for Mackjan

Hi How can I stop a loop, this function sort my list as I wish but I want to stop it when it done the task. I have a list x = [4,4,2] and during 15 attempt I want to sort it like that x = [1,2,3,4], if the function …

Member Avatar for Mackjan
0
110
Member Avatar for jmroach

I am trying to add entries to a dictionary with the following loop: [CODE=python] for p in pressures: q70in.resetKeyword( "expansionRatio", p ) q70in.writeInput( prefix + tempInput ) commands.getstatusoutput( runq70 ) q70out = q70.Q70Output( prefix + outputFile ) results[p] = {} #results[p]['Performance'] = q70out.performance results[p]['Conditions'] = q70out.conditions print q70out print results …

Member Avatar for jmroach
0
153
Member Avatar for wonkychair

Hi all, I'm pretty new here and I'm also pretty new to Python. I'm planning this application that would scan a plugins directory on startup and add one tab for each plugin to the main wx.Frame. Now, I got this simple plugin example working, that printed a line from the …

0
70
Member Avatar for sam_only96

Hi All ! Glad to become a part of DaniWab IT Discussion. This is Samar a beginner to Python programming . I am from Bangalore India. Having a lot of Questions and a huge ambition i am here with you.I am too friendly , too open minded and cool my …

Member Avatar for jbennet
0
111
Member Avatar for tondeuse34

Hey guys, is it possible to simulate a mouse click using x and y co-ordinates. And also could you have user input of a certain co-ordinate and it would click that specified co-ordinate? thanks.

Member Avatar for tondeuse34
0
2K
Member Avatar for alasseon

Hello, All: My first post... I've looked high and low for the ability to write a Chinese language text string in a program. For example: myString = "你好" So that if you say: print myString on the console you will see: 你好 But I have yet to be successful. First …

Member Avatar for alasseon
0
112
Member Avatar for Altarium

I've got a small bit of code I need to convert to C#. However my experience with C# is very very limited and a simple python program like the one I'm trying to convert is beyond my experience in C#. If anyone knows of any converters or is willing to …

Member Avatar for Typhon
0
545
Member Avatar for sam_only96

Hi All ! "Do win32all work well in Vista box can anyone show me how to start and stop a service in vista ,i have working code for window xp and 2k"

Member Avatar for sneekula
0
38
Member Avatar for afi88

Hi. I have a problem with a physics assignment I have to finish by tonight. They have already given me a python code, but I have to find the period T of Jupiter through interpolation. (It doesnt have to be interpolation, but my teacher recommended it.) This is the program: …

Member Avatar for sneekula
0
134
Member Avatar for lllllIllIlllI

Hi I was making a program that tried to open firefox like this: [code] exec file('C:\\Program Files\\Mozilla Firefox\\firefox.exe') [/code] but i get an error [icode] exec file('C:\\Program Files\\Mozilla Firefox\\firefox.exe') File "C:\Program Files\Mozilla Firefox\firefox.exe", line 1 SyntaxError: Non-ASCII character '\x90' in file C:\Program Files\Mozilla Firefox\firefox.exe on line 1, but no encoding …

Member Avatar for lllllIllIlllI
0
123
Member Avatar for jrcagle

So I have this nifty wxPython widget -- a Cartesian Coordinate plane with scrolling ability. Three issues: (1) On scrolling outwards, I set it to resize itself, which seemed like a reasonable plan. But the resizing is very choppy. Is there any way to capture the last wx.SIZE event instead …

0
82
Member Avatar for ssDimensionss

Hi i have a CSV file that looks something like this: Name ASX_Code Date SharePrice ACACIA RESOURCES AAA 19990630 1.75 ACACIA RESOURCES AAA 19980630 1.72 ABSOLUTE RETURN FUND UNIT AAB 20040625 0.9 ABSOLUTE RETURN FUND UNIT AAB 20030630 0.85 AUSTRALIAN AGRICULT. AAC 20070629 2.95 AUSTRALIAN AGRICULT. AAC 20060630 1.935 AUSTRALIAN …

Member Avatar for bvdet
0
180
Member Avatar for tefflox

I am designing a small, commercial website that requires an administration page where the owner can upload photos and update the inventory table. It was coming along just fine until I found out, by brute force, that Dreamhost does not allow a PHP script to execute the Image Magick commands …

Member Avatar for jrcagle
0
126
Member Avatar for Shadow14l

Whenever I open a page with urllib or urllib2 (file = urllib.urlopen(urllinkhere)) and when I print it, I get this: [IMG]http://i121.photobucket.com/albums/o229/Shadow14l/boxes1.gif[/IMG] See all the square boxes? Unknown characters or something... Well they are and represent the returns (new lines). If I saved this to a text file, all the boxes …

Member Avatar for Shadow14l
0
108
Member Avatar for Stonebow

Hi all Im steve from Lincoln, UK. I joined the forums here at daniweb as I want to learn programming as a hobby, myself, im no spring chicken hitting close to what they call the age at what life begins at so please be gentle! Im looking at starting learning …

Member Avatar for Serunson
0
64
Member Avatar for devaland

Hi all, I am Marius form Transylvania... I am here because I am on my way to become a python guy... So a little helping hand from the members of this great community will be really appreciated... I will do the same... Best! Marius

Member Avatar for Serunson
0
51
Member Avatar for FreezeBlink

There's a function that repeatedly shows up in languages, usually with more or less the following form (Python syntax): [code=Python]var1 = raw_input("Input a number between one and three.") choose var1: case "1": print "You inputted one." case "2": print "You inputted two." case "3": print "You inputted three."[/code] Or something …

Member Avatar for kdoiron
0
1K
Member Avatar for deepakedward

I have been trying to install Pymmlib for viewing and manipulating mmcif files for my Bio informatics project but i can seem to get it installed it shows that a lot of dependencies are missing can anyone please tell me how i can successfully make this work also where do …

0
62
Member Avatar for harakiri1976

Hi Guys! I am trying to make a simple and very basic Database in Python. Something, like a small agenda with contacts. I make a dictionary within the script and I was trying to update that info with new Input data. The problem is that I am not sure I …

Member Avatar for woooee
0
118
Member Avatar for tkpython

Hi just wonderin if anyone can help with my GUI, I got this far, but want to have an image on the background of the main app, and also the buttons. Ive read through vegaseat's script which he helped someone on here, but somehow I can implement his code into …

Member Avatar for ZZucker
0
183
Member Avatar for tkpython

Hello, Im tkpython (not the tk for python just an initial to my name), browsed for about an hour before signing up, and in that hour saw a lot of great stuff, kudos to everyone who has helped out other members in solving problems, and to the many great discussions

Member Avatar for happygeek
0
34
Member Avatar for swaroopk85

Hi all, Is there any module for undefining proxy for https in python like $agent->proxy( 'https', undef ); in perl

Member Avatar for swaroopk85
0
43
Member Avatar for jascase901

i am trying to teach myself python using this book called, core python programing by wesley chung. one of the exersises in this book says make a text based menu application that uses more than one of the programs you made already.When i made the application one of my code …

Member Avatar for tondeuse34
0
91
Member Avatar for lllllIllIlllI

Hi I have been looking around for some good tutorials but i havent been able to find any especially for networking. i was wondering if anyone in the community could help. thanks

Member Avatar for jrcagle
0
113
Member Avatar for unpolloloco

I am quite the beginner at python (and programming altogether), but I'm attempting to learn (slowly but surely). Anyway, I am attempting to make a standalone python program that will interact with firefox (opening links, etc.). I've figured out how to open FF and open links. However, for the life …

Member Avatar for unpolloloco
0
107
Member Avatar for Mackjan

How can i create a function which sort a list in this way for example if list 4,4,2 4,4,2 3,3,1,3 2,2,0,2,4 1,1,0,1,3,4 0,0,0,0,2,3,4 0,0,0,0,0,1,2,3,4 If the list is impossible to sort then the program have to try it 15 times not more. The function which I wrote does it only …

Member Avatar for Mackjan
0
80
Member Avatar for Seagull One

Hello everyone! I haven't programmed in quite a while and now that I'm getting back into the programming environment for my robotics project again, I'm a little stumped on something: I'm getting this error message for an exception raised in my VAST python script for my robot. It goes like …

Member Avatar for Seagull One
0
387

The End.