📅  最后修改于: 2022-03-11 14:58:27.747000             🧑  作者: Mango
C#
myImg.Source = new BitmapImage(new Uri(@"component/Images/down.png", UriKind.RelativeOrAbsolute));
Python
self.teclogomain.Source = Imaging.BitmapImage(System.Uri("C:\Users\sreddy\AppData\Roaming\pyRevit-Master\extensions\TEC.extension\TEC kit.tab\panel2.panel\uitest.pushbutton\icon.png",System.UriKind.RelativeOrAbsolute))