Forum: Python 15 Days Ago |
| Replies: 0 Views: 281 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 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 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 How did you make those images? |
Forum: Python Oct 27th, 2009 |
| Replies: 8 Views: 481 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 I would be glad to get some tips from you! |
Forum: Python Oct 27th, 2009 |
| Replies: 8 Views: 481 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 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 In the last line it says: |
Forum: Python Oct 26th, 2009 |
| Replies: 7 Views: 515 I tried py2exe, but it didn't work for wxPython |
Forum: Python Oct 26th, 2009 |
| Replies: 7 Views: 515 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 I hope pun not intended:
lol
:) |
Forum: Python Oct 15th, 2009 |
| Replies: 13 Views: 527 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 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 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 Even using GUI2exe, it gives the same error: |
Forum: Python Oct 7th, 2009 |
| Replies: 45 Views: 2,840 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 Thanks mate, will try it out soon! |
Forum: Python Oct 7th, 2009 |
| Replies: 45 Views: 2,840 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 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 OH! So stupid of me! I fixed that winmic! ;) |
Forum: Python Oct 7th, 2009 |
| Replies: 45 Views: 2,840 Same thing, shows the error |
Forum: Python Oct 7th, 2009 |
| Replies: 45 Views: 2,840 I scrutinized the error and found out it mentioned a 'syntax error'? |
Forum: Python Oct 7th, 2009 |
| Replies: 45 Views: 2,840 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 What's the difference between EVT_BUTTON and EVT_LEFT_DOWN?
Also, can you explain to me why I should useself.panel? |