gui

Pyqt5 qthread + signal not working + gui freeze

匿名 (未验证) 提交于 2019-12-03 01:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to make a mailbox checker with imap lib, it work pretty fine with python, queue and multithread without gui. But when I try to put a gui, every fonction i made, make the gui freeze until finish . I tried many thing from various doc(add qthread, signal, cursorr etcc) and tutorials none worked for me . Can someone help me to understand how to set or append a text to a QtextEdit while running a function coz it work only after finish . Here is my code : class Checker ( QtCore . QThread ): signal = QtCore . pyqtSignal (

How do I access GUI (GTK) from multi threads?

匿名 (未验证) 提交于 2019-12-03 01:49:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a worker thread spawned from a GUI (for GUI performance), how do I access GUI, such as spawning new windows/widgets from the thread itself? I tried using delegates but it doesn't seem to be working. Any ideas? Possibly examples? Thank you. 回答1: According to their Best Practices : Gtk# is not a thread-safe toolkit, which means that only one thread at a time can safely invoke methods on Gtk#. This thread is typically the thread executing the main loop (which is when control has been explicitly transfered to Gtk). When

Volume Slider in Matlab GUI

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Link of Previous Post: Matlab Questions about Audioplayer GUI I am trying to make a volume slider in Matlab... So currently what I have in mind from what I have searched is using handles variable to get the slider's value. After that, I am planning to have the variable multiply the (x,fs) in the audioplayer. My current code for the beginning of the handle is like this... handles.a = [] ; %I don't know what to put for this >.< handles.output = hObject; handles.myPlayer=[]; guidata(hObject, handles); My code for the volume slider is like this:

GUI Testing [closed]

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on the issue of testing my GUI and I'm not entirely sure of the best approach here. My GUI is built using a traditional MVC framework so I am easily able to test the logic parts of the GUI without bringing up the GUI itself. However, when it comes to testing the functionality of the GUI, I'm not really sure if I should worry about individually testing GUI components or if I should mainly just focus on functional testing the system. It's a pretty complex system in which testing the GUI frequently involves sending a message to the

QThread and GUI Thread clarification

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: In the official Qt Documentation: As mentioned, each program has one thread when it is started. This thread is called the "main thread" (also known as the "GUI thread" in Qt applications). The Qt GUI must run in this thread. All widgets and several related classes, for example QPixmap, don't work in secondary thread Now, in a qt project i've tried the following code: QThread * thread = new QThread ; DetectList * list = new DetectList ; list -> moveToThread ( thread ); connect ( thread , SIGNAL ( started ()), list , SLOT ( process (

linux如何部署owasp-zap

天涯浪子 提交于 2019-12-03 01:43:01
最近学习一些安全相关的知识,找到了owasp的zap工具。于是down了下来。 window下面很好用,zap.bat直接双击启动就行了。 但是想部署到服务器上。启动却碰到了个问题: org.zaproxy.zap.GuiBootstrap - ZAP GUI is not supported on a headless environment. Run ZAP inline or in daemon mode, use -help command line argument for more details. (Note, some of the ZAP features that require a display, for example, running AJAX Spider with Firefox, might still be run with the help of applications like Xvfb.) 这里是说无头环境不支持ZAP GUI。看了点源码,了解到zap是基于GUI编程的。我的jdk也是刚安装的8,没理由不支持a。 后来在bing上百般搜索,找到了这个 https://github.com/zaproxy/zaproxy/issues/5376 然后linux的启动是这样的:./zap.sh -daemon 启动成功。 后记:

reloading dll in winbinder (php gui) crashes program

匿名 (未验证) 提交于 2019-12-03 01:42:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is first time I need to load dll nad unfortunatelly this is not COM serwer dll so I can't use php com functions. I found out it possible to use winbinder to do this, but so far I did not have that much success. Here is my code: define("PATH_SCRIPT", dirname(__FILE__) . "/"); define("PATH_DATA", PATH_SCRIPT); define("PATH_INC", PATH_SCRIPT . "include/"); define("PATH_RES", PATH_SCRIPT . "resources/"); //----------------------------------------------------------------- DEPENDENCIES include PATH_INC . "winbinder.php"; //-------------------

Nice IDE with GUI designer for wxPython or Tkinter [closed]

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a little experience developing small command-line applications with Python. I want to move on to developing GUIs with Python. From the available GUI toolkits for Python, the ones I feel the most inclined to are wxPython and Tkinter ; but I don't want to code all of the GUI by myself all of the time. Are there any good GUI IDEs for any of these toolkits? It doesn't need to be free or open source. 回答1: I will talk only about WxPython because it's the only toolkit I have experience with. TkInter is nice to write small programs

fail to use Q_OBJECT Macro in CMake Project

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having trouble with the meta Object Compiler of Qt in my CMake Project. A shared lib I am building contains the following code and employs the pimpl idiom. After invoking CMake and upon compilation I get AUTOGEN: error: ~/tools/Project/gui/src/mainWindow.cpp: The file contains a Q_OBJECT macro, but does not include "mainWindow.moc" ! gui/CMakeFiles/gui_automoc.dir/build.make:57: recipe for target 'gui/CMakeFiles/gui_automoc' failed make[2]: *** [gui/CMakeFiles/gui_automoc] Error 1 CMakeFiles/Makefile2:234: recipe for target 'gui

Creating GUI&#039;s using Java Swing with Netbeans IDE

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: They have this very cool drag and drop thing that creates GUI on the fly. But I don't get to learn anything out from this method and I feel guilty about it. Do most of the Java programmers use this method? Because realizing the code it generates, it's quite impractical coding the GUI by hand IMO. 回答1: There's nothing wrong with using a GUI builder, as long as you understand what the tool is doing and the implications of using the tool of choice. The first thing you need to know is what the tool is doing. In this case, you should understand