Wxpython和Gtk + 3.91

时间:2018-09-08 04:56:00

标签: wxpython-phoenix

我已经写了一个基于wxpython4.0.3的小GUI,它可以在3.22之前的GTK + 3版本上正常工作。不幸的是,我最新的Debian测试安装版本是3.22,并且在其上运行时出现 var topStk = new StackLayout { HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.Start, Spacing = 5, Margin = new Thickness(0, 10, 10, 0), Orientation = StackOrientation.Vertical }; var title = new Label { Text = category.title, HorizontalOptions = LayoutOptions.FillAndExpand, TextColor = Color.Black, }; var scrollView = new ScrollView { HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.Start, HeightRequest = 180, Orientation = ScrollOrientation.Horizontal }; var content = new StackLayout { HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.Start, Orientation = StackOrientation.Horizontal }; foreach (var item in category.programs) { var img = new Image { WidthRequest = 170, HeightRequest = 170, Aspect = Aspect.AspectFill, Source = ImageSource.FromUri(new Uri("https:" + item.image)) }; img.BackgroundColor = Color.Accent; content.Children.Add(img); } scrollView.Content = content; topStk.Children.Add(title); topStk.Children.Add(scrollView); this.stacks.Children.Add(topStk); 错误。自然,我认为GTK中的某些内容已损坏,但在更高版本中可能已得到修复。或者,也许我可以恢复到较早的GTK版本。因此,我的问题(可能含糊其词)是关于是否可以告诉wxpython使用哪个已安装的GTK版本的?或者,我是否坚持使用GNOME使用的任何GTK版本?

0 个答案:

没有答案