[Tutor] Python-windows command prompt interaction?

2008-06-10 Thread Trey Keown
Hey all, I'm creating a program that will copy a user's internet history from Internet Explorer, and I'm having a bit of trouble. I need to get python to either initiate a command via the command prompt, or open a file with its default program (in this case, a .bat file with cmd.exe). I've been

[Tutor] cross-compile python?

2008-03-23 Thread Trey Keown
Hey all, I've started trying to make homebrew programs for my wii the past couple of days, and have found that programming it in c is quite hard. I was wondering how I would go about compiling python for something like this. The wii has a ppc processor, and runs homebrew in the native .elf format

[Tutor] Need help with encoder & decryption keys

2008-02-29 Thread Trey Keown
Hey all, Been away for a while. So, I'm in the process of making a program for encrypting and decrypting strings of text. And I was wondering how it would be possible to perhaps keep keys in a .pyc file, and keep them from being isolated, and messages being intercepted. So... is it possible to de

Re: [Tutor] Best way of learning

2007-12-06 Thread Trey Keown
The way I learned python was through this wikibook: http://en.wikibooks.org/wiki/Python_Programming I found it very easy to understand and very helpful. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Python on T-Mobile Wing???

2007-11-20 Thread Trey Keown
Hey all, I just got a brand new T-Mobile Wing, and, as you might guess, I want to install python on it. Well, I tried both the pythonce main build (with the .exe), and the build for the smartphone (also used .exe), but once I downloaded them, when I tried to run them, a dialog comes up saying that

[Tutor] Calling a function within a function within a class...

2007-11-09 Thread Trey Keown
Hey all... I'm creating a module for my program, and I need to call a function. Here's how it's set up: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- class DoStuff: def Thing1(self): def ThingToCall(self): print "It worked!" def Thing2(self): #Call

[Tutor] Getting single values of a tuple & storing them

2007-10-31 Thread Trey Keown
Hey all, I was wondering, how could I get each value inside of a tuple, say it's (2,4) . The only value I really need is the second one (the tuple will always have only two values. Thanks for any help. ___ Tutor maillist - Tutor@python.org http://mail

[Tutor] Disable keyboard/mouse input on windows?

2007-09-29 Thread Trey Keown
Hey everybody, I was wondering, how could I disable all keyboard/mouse input for the whole windows system while I have a video playing? So the user can't press, for example, the super key [one with windows logo on it], and have the windows menu pop up? Could this be accomplished somehow through sys

[Tutor] Undo/Redo in wxpython?

2007-09-07 Thread Trey Keown
What is the proper way to undo/redo changes in a text box? I read somewhere that the default undo depth is 1. How could I change this to, say, about 35? Here's a snippet of my code- #!/usr/bin/python import wx import os ... ... ... class MainWin(wx.Frame): def __init__(self, parent, id, title

[Tutor] WxPython Splashscreen?

2007-09-07 Thread Trey Keown
Hey all, Does anyone know how to make a wxPython splashscreen? It would be great if you could show a (working) example, as I have googled this topic, yet have not found any working examples. Thanks. ___ Tutor maillist - Tutor@python.org http://mail.pyt

[Tutor] Problems with wx in Vista...

2007-09-04 Thread Trey Keown
Although I should have expected at least a few problems, I have a question about a glitch in vista using a wx-implemented script. Here's the example script- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #!/usr/bin/python # togglebuttons.py import wx class ToggleButtons(wx.Dialog): def __init__(sel

[Tutor] Need some help with wxPython...

2007-09-03 Thread Trey Keown
Hey all, I'm starting to drift away from Tkinter and enter the realm of wxPython. I've recently written a simple text editor in Tkinter, and I would like to know if anyone knows of a good example of a simple wxPython text editor (with the lines properly indented!!!), because all the examples I can

[Tutor] replacement for .mainloop() in Tk

2007-09-02 Thread Trey Keown
Okay, I'm making a program that turns xml code into python code. Here's the an example of input- And here would be the corresponding output (well, what I've got so far...) from Tkinter import * import tk

[Tutor] A replacement for a "for" loop

2007-08-28 Thread Trey Keown
Hello everybody. I'm using a couple of "for" loops to help me in xml parsing using expat. Unfortunately, though, I've found that using more than one of these in a row, at least in my case, causes a redundancy error. a snippet of my code (note that this is not the way I set the dictionaries)- attrs

Re: [Tutor] Read dictionary data in a specific order...

2007-08-24 Thread Trey Keown
> "Trey Keown" <[EMAIL PROTECTED]> wrote > >> I would like to know, how can I read (or sort) a dictionary in a >> certain >> order? > > Dictionaries are by design unsorted and indeed may even change > their order during their lifetime. > >>

[Tutor] Read dictionary data in a specific order...

2007-08-24 Thread Trey Keown
Hello. I would like to know, how can I read (or sort) a dictionary in a certain order? say this is my dictionary- attrs={u'title': u'example window title', u'name': u'SELF', u'icon': u'e.ico'} how could I get the data so that u'name' is read first, u'title' second, and u'icon' third? thanks so much