English 中文(简体)
Twisted + Gtk - 停职工作不适当
原标题:Twisted + Gtk - shutdown not working properly

利用Adhur 2.6, Twisted 10.1, 以及GTK+ 2.22, 安装了最新的粉墨,Im在关闭时遇到问题。 在我结束申请并关闭反应堆(当然使用<代码>>gtk2reactor)时,申请只是冻结。

我在扭曲的源头上 p光,并添加了 de。 终止的是:<代码> 封闭式 突发事件火焰,PortableGtkReactor.crash。 该活动在<代码>末处理。 ReactorBase.run UntilCurrent 。 当职能返回时,控制范围可达ReactorBase.iterate,该编码将控制返回。 PortableGtkReactor.simulate, which re to... the gtk.main(. 参看gtk。 只是quit。

不幸的是,当我举出一个非常简单的例子时,加上“Hello World”样本,所有东西都正确关闭。 这必须是我的申请。 直到我能够进一步说明这一点......

这可能是什么原因? 就像人们能够做些什么那样,这会导致不放弃? 服饰者在Gtk 2.12、Adhur 2.5和Twisted 8.1上课,如果他们完全帮助的话。

最佳回答

, 问题似乎来自进口win32ui模块。 但我认为根本问题更深。

EDIT:种子与我特别安装视窗7和这里的其他任何情况有关。

问题回答

或许是: Twisted反应堆在关闭时加入了所有线,如果你重新在“黄色”/代码中做一些事情,那么你的 lo可能无法停止。 (我不确定,如果你重新开始自己的read子,会是什么行为。)





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签