User Profile

Collapse

Profile Sidebar

Collapse
nicstel
nicstel
Last Activity: Mar 7 '13, 04:18 PM
Joined: Jun 27 '08
Location: Montreal, Canada
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nicstel
    replied to shutil.move when in use?
    Yes I am on windows. To fix my problem, I will try to read if I have any doubled files and if yes I will delete the one that it is not in use.

    Thanks

    Nicolas
    See more | Go to post

    Leave a comment:


  • nicstel
    started a topic shutil.move when in use?

    shutil.move when in use?

    Hi,

    I have created a script to move some files(pdf) from a directory to another one, but when the file that I want to move is in use it automaticaly copy the file to the new destination. I don't want to copy the file. There is a way to not move and copy the file when is in use?

    here is part of my script.

    Code:
                for DefaultUserName in Final_MoveToRightPerson_Dict:
                    for DrawingName in
    ...
    See more | Go to post

  • nicstel
    replied to Xls to Pdf
    I thought that it was easier but I finally got it. Thanks for the second Link, it was very helpful.

    Thank You
    See more | Go to post

    Leave a comment:


  • nicstel
    started a topic Xls to Pdf

    Xls to Pdf

    I wrote a Piece of code to generate an Excel file. I would like to create a Pdf from this file thru my code. How to handle this? I saw the PHPExcel, but I don`t know how it`s work!

    Thank You

    Nicolas
    See more | Go to post

  • nicstel
    started a topic Python Editor Shortcut

    Python Editor Shortcut

    Hi,

    I'm trying to find a way to switching code in the python editor with a shortcut on keybord or with the mouse, like if I select Window in the toolbar and select the code on which I want to working on. I'm not sure if my question is clear but I tried.

    Thanks

    Nicolas
    See more | Go to post

  • nicstel
    replied to sorting list?
    It works perfectly !! it's more complicated as I thought, but I like it.

    Thanks BV
    See more | Go to post

    Leave a comment:


  • nicstel
    started a topic sorting list?

    sorting list?

    I'm trying to find a way to sort a list..

    Code:
    list =  ["B1", "B2", "B10", "C1", "C2", "VB1", "VB2", "VB15"]
    list.sort()
    list.sort() give me: ['B1', 'B10', 'B2', 'C1', 'C2', 'VB1', 'VB15', 'VB2']
    I want this: ['B1', 'B2', 'B10', 'C1', 'C2', 'VB1', 'VB2', 'VB15']

    Do I need to use sting.split or something like that?...
    See more | Go to post

  • nicstel
    replied to Need help coding?
    ccgrl451,

    line 3: In this case is not necessary to import string. I use it often. But if you want to remove import string you need to fix line 24. Replace str(C) by C.

    line 11: When you want to extract information from a function you need to do a return of the answer. A = Head or Tails.

    loop: I have create three variables. first_time, second_time and third_time. When these variables are identical, it's...
    See more | Go to post

    Leave a comment:


  • nicstel
    replied to Need help coding?
    A lot of solutions is possible to do what you want to do. Try this one and tell me if you understand the function that I have built.

    Code:
    import random
    import string
    
    first_time = ""
    second_time = ""
    third_time = ""
    
    def head_or_tails():
        A = random.choice(["Head", "Tails"])
        return A
    
    for
    ...
    See more | Go to post

    Leave a comment:


  • nicstel
    replied to xlwt (Borders: Type)
    Thanks bvdet.

    I have tried all the possible border that you sent me and it's all works. I'm learnig to write on excel file with this module because it's easy to use.

    Borders type name: thin, medium, dotted etc...

    Nicolas
    See more | Go to post

    Leave a comment:


  • nicstel
    started a topic xlwt (Borders: Type)

    xlwt (Borders: Type)

    Hello,

    I'm trying to find documentation about the xlwt (py_excelerator ). I want to change the border of some cells. But the only types that I found is: double and dashed. How to do a simple line and what is the all other border type name?

    "borders: top double, bottom double, left double, right double;"


    Thank You

    Nicolas




    here is my...
    See more | Go to post

  • nicstel
    replied to str information
    Thank ghostdog74,

    It's more simple. Have a nice day.
    See more | Go to post

    Leave a comment:


  • nicstel
    replied to str information
    It was exactly what I wanted

    Thank you at both of you
    See more | Go to post

    Leave a comment:


  • nicstel
    started a topic str information

    str information

    How to print only the number in:

    x = 1p
    if I print x = 1p
    but in want only = 1

    Thank You
    See more | Go to post

  • nicstel
    started a topic Tkinter Dialog box

    Tkinter Dialog box

    Hello.

    My script run fine within python but not in my program(SDS/2 wich is a software like Autocad). The problem is I got an error when the time comes to read the line14 to 19. (Source code come from Tkinter.py)

    Code:
    class Tk(Misc, Wm):
        """Toplevel widget of Tk which represents mostly the main window
        of an appliation. It has an associated Tcl interpreter."""
    ...
    See more | Go to post

  • nicstel
    started a topic Tkinter "argv"?

    Tkinter "argv"?

    I don't understand the "argv" in TKinter module
    Can you tell me what argv means and do?

    Thank You
    See more | Go to post

  • nicstel
    replied to Tkinter information
    Thanks a lot kaarthikeyaprey an...
    See more | Go to post

    Leave a comment:


  • nicstel
    started a topic Tkinter information

    Tkinter information

    There is anybody know a good book or a website
    about the Tkinter? If you know, Please let me know.

    Thank You
    See more | Go to post

  • nicstel
    replied to Radio button error in dialog box
    Yes you are right. But my real question is I want to know if I
    can run Tkinter script into other program, like Autocad or SDS2?

    Thank You...
    See more | Go to post

    Leave a comment:


  • nicstel
    started a topic Radio button error in dialog box

    Radio button error in dialog box

    When we run this piece of code, we are getting a following error.

    output error
    File "src/lib/parametric/gen_freeze/Tkinter.py", line 1558, in init
    AttributeError: 'module' object has no attribute 'argv'


    piece of code

    Code:
    from Tkinter import *
    
    class TestMenu:
        def __init__(self, master):
            self.master = master
            self.menubar = Menu(self.master)
    ...
    See more | Go to post
    Last edited by nicstel; Jul 14 '08, 07:11 PM. Reason: wrong title
No activity results to display
Show More
Working...