gui

IPython Notebook: Open/select file with GUI (Qt Dialog)

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When you perform the same analysis in a notebook on different data files, may be handy to graphically select a data file. In my python scripts I usually implement a QT dialog that returns the file-name of the selected file: from PySide import QtCore, QtGui def gui_fname(dir=None): """Select a file via a dialog and return the file name. """ if dir is None: dir ='./' fname = QtGui.QFileDialog.getOpenFileName(None, "Select data file...", dir, filter="All files (*);; SM Files (*.sm)") return fname[0] However, running this function from an

stdout to tkinter GUI

匿名 (未验证) 提交于 2019-12-03 03:05:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I redirect stdout data to a tkinter Text widget? 回答1: You need to make a file-like class whose write method writes to the Tkinter widget instead, and then do sys.stdout = . See this question . Example (copied from the link): class IORedirector(object): '''A general class for redirecting I/O to this Text widget.''' def __init__(self,text_area): self.text_area = text_area class StdoutRedirector(IORedirector): '''A class for redirecting stdout to this Text widget.''' def write(self,str): self.text_area.write(str,False) and then, in your

How MVC work with java swing GUI

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Lets say I have a swing GUI which has textfeild and button. When I click button I want to save that value in text in db and return joptionpane "success" message. The way I used to do this is Model : JDBC class View : GUI : In that button's ' action performed ' action I call save method with parameter. Controller con = new Controller(); con.save(text1.getText()); Controller : Write a save method. JDBC db = new public void save(jTextfeild text){ text= text1.getText(); boolean b= db.putData("insert into .. values(text)"); if(b){ JOptionPane(

Windows GUI Automation [closed]

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am planning to automate some of the functionality of the GUI developed in Microsoft Visual C#. I am new to Automation with GUI. Would be glad if you share your experience regarding GUI Automation and some of the tools available for the automation. I plan to develop some programms / scripts in order to realise some of the functionality of the GUI 回答1: For automating Windows OS itself, the free AutoIT uses a BASIC type syntax for automation. It is not open source but development is continuing on AutoHotkey , which is open source. Either of

How do I write to StdOut from a GUI app started from the command line?

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am writing a standard windows app in Delphi 7. If I was writing a console app, I can call the following to output to the cmd line or output file. writeln('Some info'); If I do this from my standard GUI app that I have started from the command line I get an error. I/O Error 105 There must be a simple solution to this problem. Basically I want my app to have two modes, a GUI mode and a non-GUI mode. How do I set it up correctly so I can write back to the cmd window? 回答1: This question is very similar (if not exactly the same) as something I

git gc / git gui: Unlink of file <internal pack file name> failed

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Running version 1.9.4.msysgit.0 of git , I'm getting the mentioned error(s) almost every time I run git gc on the command-line or via git gui when it prompts me to "compress loose objects": Counting objects: 1110956, done. Delta compression using up to 4 threads. Compressing objects: 100% (269562/269562), done. Writing objects: 100% (1110956/1110956), done. Total 1110956 (delta 636114), reused 1110956 (delta 636114) Unlink of file '.git/objects/pack/pack-207f1feb5376880778637c ... 8371cea62.pack' failed. Should I try again? (y/n) n Checking

Cross-platform Python GUI suitable for taskbar (Win) and menubar (mac) functionality?

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am fairly new to Python programming, and completely new to cross-platform GUI building (only previous GUI experience is through visual basic and Java). I've written some python code to screen-scrape data from a website, and now I want to build a GUI that will reside in the Mac OS X menubar, and in Window's task bar (i.e., the system tray) . The most useful general page on cross-plaform Python GUIs for me was this one (despite its name indication Window GUIs). And some stackoverflow questions came in useful as well (especially this one ,

Run Android without GUI (headless Android) [closed]

匿名 (未验证) 提交于 2019-12-03 02:51:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I read a lot of documents and instructions regarding how to run emulator without GUI(headless Android). But I didn't find instructions that explain all the steps. Can someone elaborate all the steps? Thanks. 回答1: From: http://paulemtz.blogspot.com/2013/05/android-testing-in-headless-emulator.html Then, to run the headless emulator: emulator -avd test -no-skin -no-audio -no-window The '-no-skin' option removes the emulator buttons such as the home and other hardware keyboard buttons. The '-no-audio' option disables the audio support. Finally,

Did Apple remove the 'git gui' command in XCode 4.5 command line tools?

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: After updating to XCode 4.5 and installing the developer tools I can no longer run the 'git gui' command from the command line. It says: $ git gui git : 'gui' is not a git command . See 'git --help' . I'm running this version: $ git -- version git version 1.7 . 10.2 ( Apple Git - 33 ) Searching the git docs (http://git-scm.com/docs/git-gui) shows 'git gui' should be available, and hasn't changed since version 1.7.7. So did this Apple version of git remove this command? I use it all the time! 回答1: Apple did indeed remove the 'git

Input in a Python text-based GUI (TUI)

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been trying to make my own UI that is text-based in python 2.7, but I thought of an idea about input. So I figured something like this: input = raw_input("|" + "input: ".center(78) + "|") , but of coarse, the cursor is way far on the right (just realized it wouldn't work before i even typed it in :P). So, the question is, is how do I put an input in the middle of the screen with text on the same line (on both sides) and have the cursor type after I write "Input: "? And if your wondering, im using this: if True: print c + "Hi! This is