user-interface

Wix UI customization: Adding InstallScopeDlg to WixUI_Minimal

淺唱寂寞╮ 提交于 2021-01-29 20:27:30
问题 I am trying to add the InstallScopeDlg to my installer using Wix. Because InstallScopeDlg is only available in WixUI_Advanced but I don't need the other dialogs from that UI, I decided to create my own UI by copying WixUI_Minimal code and renaming to WixUI_MyMinimal . Then I changed some of the sequences and button names so I could put InstallScopeDlg after the WelcomeEulaDlg and before ProgressDlg . I also copied the other required dialogs to my Wix project in visual studio. The interface is

How to save information from the program then use it to show in program again (simple programming)

和自甴很熟 提交于 2021-01-29 17:35:57
问题 I have a user-interface, I made. It has Entry form and Treeview section. When I entry information, it show on the treeview (table with 4 column). But when I close the built gui, Those information disappear then when I build again no information show in treeview. I don't want to send information to data server or any clouds, I need save it in my local drive or local folder that this program locate. # from tkinter import * from tkinter import ttk import webbrowser as web def addit() : web =

How to disable the ability to highlight in JTextArea

风流意气都作罢 提交于 2021-01-29 16:38:49
问题 I am looking for a way to disable the ability to highlight in the JTextArea. Currently this is my JTextArea: textArea1 = new JTextArea(); textArea1.setBorder(BorderFactory.createLineBorder(Color.black, 1)); DefaultCaret caret = (DefaultCaret) textArea1.getCaret(); // this line and the line below was inspired by a comment found here: https://stackoverflow.com/questions/15623287/how-to-always-scroll-to-bottom-of-text-area caret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE); textArea1.setEditable

Qt: QPushButton vertical size, fit to contents?

谁都会走 提交于 2021-01-29 16:26:32
问题 Is there any way to reliably have a push button's height fit to its contents? Some previous answers suggest using layouts and size policies, or maximum height (How to make height of a QPushButton automatically fit the text?, Increase Height of QPushButton in PyQT, How can I set a QPushButton to grow vertically?), but they don't seem to work for me. See the example below. The two buttons are drawn with their default "one line" height, so the text inside is clipped. Setting their size policies

GUI or CLI to create parquet file

你。 提交于 2021-01-29 13:14:38
问题 I want to provide the people I work with, a tool to create parquet files to be use for unit-tests of modules that read and process such files. I use ParquetViewer to view the content of parquet files, but I like to have a tool to make (sample) parquet files. Is there such a tool to create parquet file with a GUI or some practical CLI otherwise? Note: I would prefer a cross-platform solution, but if not I am looking for a windows/mingw solution in order to use it at work - where I cannot

Change the following game model into a GUI

白昼怎懂夜的黑 提交于 2021-01-29 12:38:06
问题 I'm currently working on creating a gui for a futoshiki game in java. The default constructor for the game is as follows: public Futoshiki() { int row, col; cells = new Cell[SETSIZE+1][SETSIZE+1]; for (row=1; row<=SETSIZE; row++) for (col=1; col<=SETSIZE; col++) cells[row][col] = new Cell(this, row, col); // row constraints rc = new Constraint[SETSIZE+1]; for (row=1; row<=SETSIZE; row++) { rc[row] = new Constraint(); for (col=1; col<=SETSIZE; col++) { rc[row].add(cells[row][col]); cells[row]

how do I create entry fields and buttons to get the content from the entry field using iteration in tkinter for python?

为君一笑 提交于 2021-01-29 11:22:12
问题 I'm trying to make a tkinter GUI with a certain amount of buttons and entry fields that is specified by the user, so in this code below for example if the user specifies the variable number to be 3 I want there to be 3 entry boxes and , and I want to set it up so that if I type a value into the first field and click the button next to it, I want that button to read the value from the entry field next to it. I also need to assign each entry field to a variable that will be created through the

triggering Popup.dismiss() in a method which didn't call Popup.open() (kivy)

被刻印的时光 ゝ 提交于 2021-01-29 11:19:51
问题 I'm trying to develop a kivy app for my less-comp-savvy colleagues which wraps a nice GUI around some computations which I developed for a project; currently I have two methods embedded in a class, one (called 'dummy') which keeps the GUI from freezing and from such multithreads the second method (called 'calculate') which actually runs the computation. Within the dummy method I'm hoping to open a popup which displays a 'loading GIF' (indicating that the program is running and not just frozen

How to create multiple button with PowerShell?

我们两清 提交于 2021-01-29 10:38:18
问题 I would like to create multiple buttons. The button more than 50 buttons. But I do not want to create it one by one like what I did below. All the button function, size, are the same. Only the name is different. Anyone can help me please, and give an idea. Thank you very much. Add-Type -AssemblyName System.Windows.Forms [System.Windows.Forms.Application]::EnableVisualStyles() $Form = New-Object system.Windows.Forms.Form $Form.ClientSize = New-Object System.Drawing.Point(973,1177) $Form.text =

Python 2.7 : How to get rid of cmd window while running a python gui .exe script

こ雲淡風輕ζ 提交于 2021-01-29 10:13:53
问题 I have a GUI script run.py which i turned into a .exe file using pyinstaller. When I double click on the .exe file two windows are opened. First the main GUI of my script and second the empty black cmd window on background. I saw on forums that saving run.py as run.pyw and then converting it into .exe file will solve the problem. But in my case the problem remains same. Does anyone have any idea how to get rid of this empty cmd window on background when i run my .exe file? 回答1: try to build