Fix CreatePanel.py: some error messages
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-bii_scripts/bin/CreatePanel.py new-bii_scripts/bin/CreatePanel.py
--- old-bii_scripts/bin/CreatePanel.py 2022-12-09 21:11:49.243592939 +0100
+++ new-bii_scripts/bin/CreatePanel.py 2022-12-09 21:11:49.247593038 +0100
@@ -173,6 +173,7 @@
wdgFile = path+"/"+widgetFileName
if os.path.isfile(wdgFile) == True:
return (widget,wdgFile)
+ sys.stderr.write(("ERROR: Can't find widget:{} for file:{}\n".format(widgetFileName,fileName)))
return (None,None)
def createLableStr(text,width,height,x,y,size,style="REGULAR"):
@@ -223,7 +224,6 @@
if opts.verbose: print("ParsedWidget FILE:",widgetFileName)
self.wdg = None
(widget,wdgFile) = getWidgetFile(widgetFileName,opts)
- #print("ParsedWidget",widget,wdgFile)
wdgGroup = ET.XML('<widget type="group" version="2.0.0"> <name>{}</name> <x>{}</x> <y>{}</y> <width>1</width> <height>1</height> <style>3</style> <transparent>true</transparent></widget>'.format(widget,opts.spaceing,opts.spaceing))
self.name = widget
if wdgFile != None:
@@ -245,8 +245,6 @@
self.wdg = wdgGroup
self.wdgStr = ET.tostring(wdgGroup)
# print("ParsedWidget file: ",self.name,self.w,self.h)
- else:
- sys.stderr.write(("ERROR: Can't find:",wdgFile,os.path.isfile(wdgFile))+"\n")
else:
sys.stderr.write("Can't create a ParsedWidget from args: "+str(args)+"\n")
patch c99ef62943deef5e71d818cf605763f0cf76bf81
Author: Bernhard.Kuner@bessy.de
Date: Mon Apr 26 08:30:43 CEST 2021
* Fix CreatePanel.py: some error message