Synchronising MPA branch with compromise branch where possible.

This commit is contained in:
Cas Cremers
2012-04-25 17:03:51 +02:00
parent 19359f9ba9
commit 9b0915441f
19 changed files with 54 additions and 105 deletions

View File

@@ -134,6 +134,7 @@ def makeImageDot(dotdata,attackthread=None):
# execute command
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE)
if attackthread:
writeGraph(attackthread,dotdata,p.stdin)
else:

View File

@@ -123,6 +123,13 @@ def testPIL():
class Preferences(dict):
def setDict(self,d):
"""
Copy dict into self.
"""
for x in d.keys():
self[x] = d[x]
def parse(self,line):
line = line.strip()
@@ -213,6 +220,11 @@ def get(key,alt=None):
else:
return alt
def getkeys():
global prefs
return prefs.keys()
def set(key,value):
global prefs

View File

@@ -337,6 +337,9 @@ class ResultWindow(wx.Frame):
claimdetails = str(cl.claimtype)
if cl.parameter:
claimdetails += " %s" % (cl.parameter)
# Cut off if very very long
if len(claimdetails) > 50:
claimdetails = claimdetails[:50] + "..."
addtxt(claimdetails + " ",xpos)
xpos += 1