首页 \ 问答 \ Python - cx_freeze脚本无效(Python - cx_freeze script not working)

Python - cx_freeze脚本无效(Python - cx_freeze script not working)

我在cx_freeze中构建的python脚本有问题。 当我通过python运行源脚本时,everythink工作。 但是当我运行编译脚本时,它仍然以如下错误结束:类型为'NoneType'的对象没有len()。

感谢你的帮助,Honza


I have problem with python scripts built in cx_freeze. When I run the source script by python, everythink works. But when I run the compilled script, it still ended with errors like: object of type 'NoneType' has no len().

Thank you for your help, Honza


原文:https://stackoverflow.com/questions/22150395
更新时间:2023-05-09 13:05

最满意答案

我想你想要的是在标题上使用filter-onlyAvail类名称

添加该类后,该列中的选择只会显示该指定列的可用(可见)选项。 如果您在“折扣”栏查看此演示 。 由于过滤器应用于其他列,因此您会看到选项有限。


I think what you want is to use the filter-onlyAvail class name on the header.

After adding that class, the select in that column will only show available (visible) options for that specified column. If you look at this demo at the "Discount" column. You'll see the options are limited as filters are applied to other columns.

相关问答

更多
  • 默认情况下会设置过滤器窗口小部件以匹配结果。 如果要与结果完全匹配,请在查询末尾添加等号( = )或引号( "或' )。尝试此演示并在第二列中使用10=仅显示值10 。 在此演示页面上 ,可以获得过滤器窗口小部件搜索类型的完整列表。 如果您希望结果始终完全匹配,那么请查看此演示 ,演示如何使用filter_functions选项始终返回完全匹配 - 该代码应该适用于文本和数字,如果没有,则更改===至==如下: filter_functions : { // Exact match only 1 ...
  • 过滤器小部件和寻呼机插件/小部件现在可以一起工作,但是寻呼机removeRows选项必须设置为false 。 此选项的作用是保留表中的所有行,而不是仅将当前页(可见)行添加到DOM。 Bootstrap主题演示 在“近期”版本中, removeRows选项将不再是removeRows项,因为筛选器窗口小部件将访问存储的缓存行而不是表中的行。 The filter widget and pager plugin/widget do now work together, but the pager remove ...
  • 如果您希望按钮执行“全部”列搜索,请将查询添加到最后一列加一。 例如: 在v2.15中,可以向数组添加一个附加参数以执行表的“任意匹配”; 警告! 请注意,如果没有外部输入(使用bindSearch函数附加data-column =“all”),则用户将不知道已应用过滤器。 // in a table with 4 columns; set the 5th parameter to any-match // find orange in any column $('table').trigger( 'sea ...
  • 在上面的代码中,列筛选器正在启用: // include column filters filter_columnFilters: true, 将此选项设置为false并且不会创建过滤器行(请参阅filter_columnFilter选项 )。 In the code above, column filters are being enabled: // include column filters filter_columnFilters: true, Set this option to false ...
  • 看起来有一个错误导致javascript错误。 我只是修复它并推出新版本(v2.23.0)。 以下是使用此代码的演示 : /* Documentation for this tablesorter FORK can be found at * http://mottie.github.io/tablesorter/docs/ */ $(function () { $('table').tablesorter({ theme: 'blue', widgets: ['ze ...
  • 我想你想要的是在标题上使用filter-onlyAvail类名称 。 添加该类后,该列中的选择只会显示该指定列的可用(可见)选项。 如果您在“折扣”栏查看此演示 。 由于过滤器应用于其他列,因此您会看到选项有限。 I think what you want is to use the filter-onlyAvail class name on the header. After adding that class, the select in that column will only show avai ...
  • 听起来好像没有包含widget文件,因为bindSearch函数 - 它包含在过滤器小部件中。 确保在页面上加载以下文件(主题文件名将根据您的选择而有所不同):