Browse Source

Remove dead commented code

RoGeorge 9 years ago
parent
commit
ed8bb4b018
1 changed files with 0 additions and 56 deletions
  1. 0
    56
      OscScreenGrabLAN.py

+ 0
- 56
OscScreenGrabLAN.py View File

@@ -5,7 +5,6 @@ __author__ = 'RoGeorge'
5 5
 # TODO: Add GUI
6 6
 # TODO: Add browse and custom filename selection
7 7
 # TODO: Create executable distributions
8
-# TODO: Use git, upload to GitHub
9 8
 #
10 9
 import telnetlib_receive_all
11 10
 import time
@@ -113,58 +112,3 @@ print "Saved file:", filename + ".png"
113 112
 # scr_file.close()
114 113
 
115 114
 tn.close()
116
-
117
-
118
-# The code after this line was only for debugging purposes.
119
-# It prints the BMP header params, which are always the same.
120
-#
121
-# def print_hex(prt_buff):
122
-# 	print "(",
123
-# 	for c in prt_buff:
124
-# 		print hex(ord(c)),
125
-# 	print ")"
126
-#
127
-#
128
-# def print_dec(prt_buff):
129
-# 	n = 0
130
-# 	for c in reversed(prt_buff):
131
-# 		n = 256 * n + ord(c)
132
-# 	print n,
133
-#
134
-#
135
-# def prt_dec_hex(prt_buff):
136
-# 	print_dec(prt_buff)
137
-# 	print_hex(prt_buff)
138
-#
139
-#
140
-# def print_next_as(description, nr_of_bytes):
141
-# 	print description + " " * (50 - len(description)),
142
-# 	prt_dec_hex(buff[print_next_as.offset:print_next_as.offset+nr_of_bytes])
143
-# 	print_next_as.offset += nr_of_bytes
144
-# print_next_as.offset = 2
145
-#
146
-#
147
-# print
148
-# print "BMP header"
149
-# print "----------"
150
-# print "Header type:                                      ", buff[0:2],
151
-# print_hex(buff[0:2])
152
-# print_next_as("BMP size in bytes:", 4)
153
-# print_next_as("reserved 2 bytes:", 2)
154
-# print_next_as("reserved 2 bytes:", 2)
155
-# print_next_as("Offset for BMP start of pixels array:", 4)
156
-# print
157
-# print "DIB header"
158
-# print "----------"
159
-# print_next_as("Number of DIB header bytes:", 4)
160
-# print_next_as("Image width (in pixels):", 4)
161
-# print_next_as("Image height (in pixels):", 4)
162
-# print_next_as("Number of color planes:", 4)
163
-# print_next_as("Number of bits per pixel:", 2)
164
-# print_next_as("Compression type used:", 4)
165
-# print_next_as("Size of the raw bitmap data (including padding):", 4)
166
-# print_next_as("Horizontal print resolution (pixels/meter):", 4)
167
-# print_next_as("Vertical print resolution (pixels/meter):", 4)
168
-# print_next_as("Number of colors in palette:", 4)
169
-# print_next_as("Important colors (0 means all):", 4)
170
-# print_next_as("First pixel (BGR):", 3)

Loading…
Cancel
Save