Search Results

Showing results 1 to 40 of 193
Search took 0.01 seconds.
Search: Posts Made By: sravan953 ; Forum: Python and child forums
Forum: Python 15 Days Ago
Replies: 0
Views: 281
Posted By sravan953
Hey All,

I am working on a Java project for school. To make my project better, I wanted to integrate Python into it... like what I wanted to do is:

You run the Python program
You get two...
Forum: Python 28 Days Ago
Replies: 12
Views: 470
Posted By sravan953
You'll either have to follow jlm699's advice or there's no other go, UNLESS.... unless you make a GUI for your program where this is possible...
Forum: Python 33 Days Ago
Replies: 9
Views: 263
Posted By sravan953
If you don't already know:

(identifier)=open("(file.txt)",'r'(or)'w')
(another_identifier)=(identifier).read()
#That's how you get text from a file which is now stored as a String in...
Forum: Python Oct 31st, 2009
Replies: 8
Views: 481
Posted By sravan953
How did you make those images?
Forum: Python Oct 27th, 2009
Replies: 8
Views: 481
Posted By sravan953
I changed lines 81-85 to this:

try:
self.s.login(self.user,self.passw)
self.loginmsg.SetLabel("Logged in...")
except:
...
Forum: Python Oct 27th, 2009
Replies: 8
Views: 481
Posted By sravan953
I would be glad to get some tips from you!
Forum: Python Oct 27th, 2009
Replies: 8
Views: 481
Posted By sravan953
Hey All,

I have some code here, the problem is in line 82-83:

import smtplib
import wx

window=wx.App()

class pymailer(wx.Frame):
Forum: Python Oct 26th, 2009
Replies: 7
Views: 515
Posted By sravan953
After reading the article at Stackoverflow, I figured out how to make it work! Thanks! I just had to Google for MSVCP90.dll and download and place it in the appropriate folder! Kudos!
Forum: Python Oct 26th, 2009
Replies: 7
Views: 515
Posted By sravan953
In the last line it says:
Forum: Python Oct 26th, 2009
Replies: 7
Views: 515
Posted By sravan953
I tried py2exe, but it didn't work for wxPython
Forum: Python Oct 26th, 2009
Replies: 7
Views: 515
Posted By sravan953
Hey All,

I have made a program called "Pymailer", I have even made a GUI version... now what I want to do is to convert it to .exe format... how do I do it? I googled for some info, but in vain!
Forum: Python Oct 16th, 2009
Replies: 6
Views: 264
Posted By sravan953
I hope pun not intended:

lol
:)
Forum: Python Oct 15th, 2009
Replies: 13
Views: 527
Posted By sravan953
Try:

lucky=input("Enter a number: ")

while True:
n=lucky%10
if(n=='7'):
print(str(lucky)+" is lucky!")
return False
lucky=lucky/10
Forum: Python Oct 10th, 2009
Replies: 7
Views: 454
Posted By sravan953
Here is the code I have till now:

import wx

window=wx.App()

class s_report(wx.Frame):

def __init__(self):
wx.Frame.__init__(self,None,-1,"Grade It!",size=(500,700))
Forum: Python Oct 9th, 2009
Replies: 7
Views: 454
Posted By sravan953
Hey guys,

I was just making a tiny program, where I need the user to enter numbers. My question is, how do get numbers?

I tried:

self.panel=wx.Panel(None,-1)...
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Even using GUI2exe, it gives the same error:
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Can you give me a detailed HOW-TO on how to go about converting my GUI Python file to an exe...? I will use Inno Setup later to make a setup for it, but first I want to make an exe..
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Thanks mate, will try it out soon!
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Although this is off-topic: I have Python 2.6.3, I installed py2exe 0.6.9, and when I try to compile the program it gives some error, I can't post the error since I can't copy text from the command...
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
FINALLY! It works! Thanks a lot you guys! Couldn't have done it without you!
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
OH! So stupid of me! I fixed that winmic! ;)
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Same thing, shows the error
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
I scrutinized the error and found out it mentioned a 'syntax error'?
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Yes, I entered my own email ID (sravan953@gmail.com) and I tried, but it didn't work, is there anything wrong?

import smtplib
import time
import os
import wx

window=wx.App()

class...
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Another problem, I logged in successfully and I wanted to send the email to myself, but it showed this error:
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Oh ofcourse! Just a few days ago, I was working on a program, where I used GetValue() IN the function...don't know why it didn't strike to me! ;)

Anyways thanks...
Forum: Python Oct 7th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Thanks, I will surely make the corrections try it out. And, in wx.TE_PASSWORD, what does TE stand for?
Forum: Python Oct 6th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
This is the full code for reference:

import smtplib
import time
import os
import wx

window=wx.App()

s=smtplib.SMTP("smtp.gmail.com",587)
Forum: Python Oct 6th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Here are the first few lines, I did as you told:

class pymailer(wx.Frame):

self.info={}
self.user=""
self.passw=""

def __init__(self):
.
Forum: Python Oct 6th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
I defined user,passw,to,subject,message in the class to make it available to all functions, but it says variable not defined, so I had to define everything outside the class like this:

import...
Forum: Python Oct 4th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
I have to in line 4. Even then it says that the global variable isn't defined!
Forum: Python Oct 4th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Also, on clicking "Send" after filling up everything correctly, it shows this error:


What should I do to solve this? Can anyone please explain to me about the scope of the variables which are...
Forum: Python Oct 4th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Till now:

import smtplib
import time
import os
import wx

window=wx.App()

s=smtplib.SMTP("smtp.gmail.com",587)
Forum: Python Oct 4th, 2009
Replies: 5
Views: 374
Posted By sravan953
If you want to check if the username is present, the easiest thing to do is:

usern=['sravan953','Dan08','SuperMetroid','vegaseat']
'SuperMetroid' in usern
"""
>> True
"""
Forum: Python Sep 27th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Also, if I use [icode]self.panel[icode] throughout, it says:


Here's the modified code including [icode]self.panel[icode]everywhere

import smtplib
import time
import os
import wx
Forum: Python Sep 27th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
I did what you told:


viewm=wx.Menu()
viewm.Append(202,"About") self.Bind(wx.EVT_MENU,self.About,id=202)

def About(self,event):
about=wx.AboutDialogInfo()
Forum: Python Sep 27th, 2009
Replies: 45
Views: 2,840
Posted By sravan953
I don't think getting the values will be a problem, because I've heard of GetValues() and Google it for help.

The problem is: the self.panel doesn't at all work...

One more question:
...
Forum: Python Sep 23rd, 2009
Replies: 45
Views: 2,840
Posted By sravan953
Hmm...I too don't know why self.panel isn't working. I will get back to you about that.

Now, what should I do to make a button(called 'Next>'), which on being clicked will 'refresh' the screen and...
Forum: Python Sep 23rd, 2009
Replies: 45
Views: 2,840
Posted By sravan953
winmic, if I use panel, it gives this error:


If I use self.panel, it gives this error:


Anyways, this is the code till now:

import smtplib
import time
Forum: Python Sep 22nd, 2009
Replies: 45
Views: 2,840
Posted By sravan953
What's the difference between EVT_BUTTON and EVT_LEFT_DOWN?

Also, can you explain to me why I should useself.panel?
Showing results 1 to 40 of 193

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC