MCPcopy Create free account
hub / github.com/RainingComputers/whipFTP / __init__

Method __init__

whipFTP.py:29–270  ·  view source on GitHub ↗
(self, master)

Source from the content-addressed store, hash-verified

27
28class app:
29 def __init__(self, master):
30 #/!\ Although the comments and variable names say 'file_list', or 'items' it inculdes folders also
31
32 #Cell width of each cell
33 self.cell_width = 190
34
35 #List to store all item names (including folders) that are currently being displayed and their details
36 self.file_list = []
37 self.detailed_file_list = []
38 #An index that points to current file that the mouse is pointing
39 self.current_file_index = 0
40
41 #Variables for drawing and storing cursor position
42 self.mouse_x = 0
43 self.mouse_y = 0
44 self.max_width = 0
45
46 #Variable to store which cell cursor is currently pointing
47 self.x_cell_pos = 0
48 self.y_cell_pos = 0
49
50 #A dictionary to store indices and highlight rectangle references of selected files
51 self.selected_file_indices = {}
52
53 #A list to hold files that have been droped into the window
54 self.dnd_file_list = []
55
56 #Things in the clipboard
57 self.cut = False
58 self.copy = False
59 self.clipboard_file_list = []
60 self.clipboard_path_list = []
61 self.detailed_clipboard_file_list = []
62
63 #Variable to store start cell position of drag select
64 self.start_x = 0
65 self.start_y = 0
66
67 #Variable to tell weather to change status, if false the current message will stay on status bar and status bar will ignore other status messages
68 self.change_status = True
69
70 #Variable to tell replace all has been selected
71 self.replace_all = False
72
73 #Variable to tell skip all has been selected
74 self.skip_all = False
75
76 #Variable to tell weather a search has been performes
77 self.search_performed = False
78
79 #Variable to tell weather hidden file are enabled
80 self.hidden_files = False
81
82 #Variable to tell a thread weather to replace a file
83 self.replace_flag = False
84
85 #For thread syncrhoniztion
86 self.thread_lock = threading.Lock()

Callers

nothing calls this directly

Calls 6

draw_iconsMethod · 0.95
bind_eventsMethod · 0.95
ftp_controllerClass · 0.85
TkDNDClass · 0.85
bindtargetMethod · 0.80
insertMethod · 0.80

Tested by

no test coverage detected