User Profile

Collapse

Profile Sidebar

Collapse
melissajean
melissajean
Last Activity: Jan 25 '11, 01:12 AM
Joined: Aug 17 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • you can use the open command. Try this:

    Code:
    file = open('myfile.txt', 'w')
    s = "My String of Text I want In the File"
    file.write(s)
    you can then find the file you just created and open it with notepad.

    check this out for more info:
    http://docs.python.org/tutorial/inputoutput.html...
    See more | Go to post

    Leave a comment:


  • melissajean
    started a topic 2 GUI Windows in Tkinter

    2 GUI Windows in Tkinter

    I am trying to make a simple dialog box, but when I run this, I get one black window in front of the working application window that I want. How do I get rid of that window?

    Code:
    from Tkinter import *
    import tkSimpleDialog
    from traders import QueryTrader
    
    class Inputs(tkSimpleDialog.Dialog):              
        
        def body(self, master):
            Label(master, text="Enter Environment
    ...
    See more | Go to post

  • melissajean
    replied to Writing to Excel in Python 2.2
    you can also try importing the csv package. I'm not 100% sure if works on Python 2.2, but I think it does.
    See more | Go to post

    Leave a comment:


  • melissajean
    replied to COM MX Session Instance to XML?
    xml.dom.minidom and other xml manipulation tools won't work on it by itself right now. it throws the error "document has no read method".

    I am trying to load the document into a variable or something that would allow me to put those tools to use, but so far it's not working.

    I am able to save it to the harddrive using the save() function, but unfortunately the data I am using would take months to save to a...
    See more | Go to post

    Leave a comment:


  • melissajean
    replied to COM MX Session Instance to XML?
    I changed the bounding on the COM Object after reading about it, using the make_py function. It now looks like:

    Code:
    doc
    <win32com.gen_py.Microsoft XML, v2.6.IXMLDOMDocument2 instance at 0x13855200>
    when I do the dir on my new doc file, I get:

    Code:
    ['CLSID', '_ApplyTypes_', '__cmp__', '__doc__', '__getattr__', '__init__', '__module__', '__repr__', '__setattr__', '_get_goo
    ...
    See more | Go to post

    Leave a comment:


  • melissajean
    started a topic COM MX Session Instance to XML?

    COM MX Session Instance to XML?

    I am trying to connect to create an MX session using win32com tool and a file already written to create an MXSession. I want to be able to load a document off the server, and then manipulate it as if it were an XML document.

    Everything goes through successfully when I enter the code, but it returns a COMObject MSXML.DOMDocume nt, and will not allow me to alter it as if it was an XML Doc (I assume because it's actually a COM Object instance?)....
    See more | Go to post
No activity results to display
Show More
Working...