Home > other >  I want to be a guide from the digital camera photo program, consult how to improving according to my
I want to be a guide from the digital camera photo program, consult how to improving according to my

Time:10-01

Now has a framework, the code is as follows:
The import tkinter
The import OS
Win=tkinter. Tk ()
Win the title (" photos "2.0)
L1=tkinter. Label (text="photo in:"). The grid (row=0, the column=0)
Def fz () :
Shutil. Move (f: \ "DCIM", "C: \ \ Users/Administrator/Desktop/new film")
OS. Makedirs (" f: \ DCIM ")
B1=tkinter. Button (text="export", the command=fz). The grid (row=1, the column=0)
L2=tkinter. Label (text="progress (unit: %)"). The grid (row=0, the column=3)
The class PDZP:
S=None
Def pd (self) :
S1=OS. Path. The exists (" f: \ DCIM ")
If s1 is True:
PDZP. S=OS. Listdir (" f: \ DCIM ")
Elif s1 is False:
PDZP. S="no"
Pdzp1=PDZP ()
Pdzp1. Pd ()
L3=tkinter. Label (text=pdzp1. S). The grid (row=0, the column=2)
Win the mainloop ()
Did the program testing only once f: \ DCIM, sometimes shows the path of the folder, show no empty, click on the Button to move the folder under the certain path to the desktop, I want to be a part of the function of the two:
One, I want it continuously testing, real-time display content under the path,
Second, if you click the run Button, display the percentage of the completed progress moving files,

CodePudding user response:

Top the first, I wanted to do with VB.NET learning VB (ago), refer to those classes let me very hurt inside, each version has discrepancy, so have a headache, actually I also just a amateur, just want to have to do procedure, and set up the Python runtime environment easier than VB.NET, VB.NET learning cost is too high, which is rarely to relevant information, now is the comfortable with that, the two are not fine,

CodePudding user response:

Now has figured out a constant output judgment cycle path results, but use after () method when the old error, can't the results on the interface reaction,
  • Related