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
User Profile
Collapse
-
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
-
I thought that it was easier but I finally got it. Thanks for the second Link, it was very helpful.
Thank YouLeave a comment:
-
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 -
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 -
It works perfectly !! it's more complicated as I thought, but I like it.
Thanks BVLeave a comment:
-
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()
I want this: ['B1', 'B2', 'B10', 'C1', 'C2', 'VB1', 'VB2', 'VB15']
Do I need to use sting.split or something like that?... -
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...Leave a comment:
-
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
Leave a comment:
-
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...
NicolasLeave a comment:
-
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... -
-
-
str information
How to print only the number in:
x = 1p
if I print x = 1p
but in want only = 1
Thank You -
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."""
-
Tkinter "argv"?
I don't understand the "argv" in TKinter module
Can you tell me what argv means and do?
Thank You -
-
Tkinter information
There is anybody know a good book or a website
about the Tkinter? If you know, Please let me know.
Thank You -
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...Leave a comment:
-
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)
No activity results to display
Show More
Leave a comment: