All Projects → sqweek → Dialog

sqweek / Dialog

Licence: isc
Simple cross-platform dialog API for go-lang

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Dialog

React Native Simple Dialogs
⚛ Cross-platform React Native dialogs based on the Modal component
Stars: ✭ 218 (-8.02%)
Mutual labels:  cross-platform, dialog
Imguifiledialog
File Dialog for ImGui : https://github.com/aiekick/ImGuiFileDialog
Stars: ✭ 398 (+67.93%)
Mutual labels:  cross-platform, dialog
Node Powershell
Easily run PowerShell from your NodeJS app
Stars: ✭ 222 (-6.33%)
Mutual labels:  cross-platform
Forge
F# CLI tool for project, file, and solution management
Stars: ✭ 233 (-1.69%)
Mutual labels:  cross-platform
Titanium mobile
🚀 Native iOS- and Android- Apps with JavaScript
Stars: ✭ 2,553 (+977.22%)
Mutual labels:  cross-platform
Docker Emacs
Dockerized Emacs (GUI)
Stars: ✭ 224 (-5.49%)
Mutual labels:  cross-platform
Reactivision
computer vision framework for tangible interactive surfaces
Stars: ✭ 231 (-2.53%)
Mutual labels:  cross-platform
Alertview
A library to create simple alerts easily with some customization.
Stars: ✭ 222 (-6.33%)
Mutual labels:  dialog
Mqttclient
A high-performance, high-stability, cross-platform MQTT client, developed based on the socket API, can be used on embedded devices (FreeRTOS / LiteOS / RT-Thread / TencentOS tiny), Linux, Windows, Mac, with a very concise The API interface realizes the quality of service of QOS2 with very few resources, and seamlessly connects the mbedtls encryption library.
Stars: ✭ 234 (-1.27%)
Mutual labels:  cross-platform
Taro Demo
github上能找到的taro适配Android、iOS、微信小程序、H5最佳实践项目脚手架
Stars: ✭ 229 (-3.38%)
Mutual labels:  cross-platform
Jh flutter demo
a flutter demo
Stars: ✭ 229 (-3.38%)
Mutual labels:  dialog
Sqlitebrowser
Official home of the DB Browser for SQLite (DB4S) project. Previously known as "SQLite Database Browser" and "Database Browser for SQLite". Website at:
Stars: ✭ 15,801 (+6567.09%)
Mutual labels:  cross-platform
Tomboy Ng
Next generation of Tomboy
Stars: ✭ 226 (-4.64%)
Mutual labels:  cross-platform
Mason
Cross platform package manager for C/C++ apps
Stars: ✭ 230 (-2.95%)
Mutual labels:  cross-platform
Textosaurus
Cross-platform text editor based on Qt and Scintilla.
Stars: ✭ 224 (-5.49%)
Mutual labels:  cross-platform
Punchclock
Make sure your asynchronous operations show up to work on time
Stars: ✭ 235 (-0.84%)
Mutual labels:  cross-platform
Seed
Build tool for Scala projects
Stars: ✭ 223 (-5.91%)
Mutual labels:  cross-platform
Chromely
Build HTML Desktop Apps on .NET/.NET Core/.NET 5 using native GUI, HTML5, JavaScript, CSS
Stars: ✭ 2,728 (+1051.05%)
Mutual labels:  cross-platform
Upcount
Invoicing for freelancers & small businesses
Stars: ✭ 230 (-2.95%)
Mutual labels:  cross-platform
Qhotkey
A global shortcut/hotkey for Desktop Qt-Applications
Stars: ✭ 234 (-1.27%)
Mutual labels:  cross-platform

dialog

Simple cross-platform dialog API for go-lang

examples

ok := dialog.Message("%s", "Do you want to continue?").Title("Are you sure?").YesNo()

Creates a dialog box titled "Are you sure?", containing the message "Do you want to continue?", a "Yes" button and a "No" button. Returns true iff the dialog could be displayed and the user pressed the "Yes" button.

filename, err := dialog.File().Filter("Mp3 audio file", "mp3").Load()

Creates a file selection dialog allowing the user to select a .mp3 file. The absolute path of the file is returned, unless an error is encountered or the user cancels/closes the dialog. In the latter case, filename will be the empty string and err will equal dialog.Cancelled.

filename, err := dialog.File().Filter("XML files", "xml").Title("Export to XML").Save()

Asks the user for a filename to write data into. If the user selects a file which already exists, an additional dialog is spawned to confirm they want to overwrite the existing file.

directory, err := dialog.Directory().Title("Load images").Browse()

Asks the user for a directory.

platform details

  • OSX: uses Cocoa's NSAlert/NSSavePanel/NSOpenPanel classes
  • Win32: uses MessageBox/GetOpenFileName/GetSaveFileName (via package github.com/TheTitanrain/w32)
  • Linux: uses Gtk's MessageDialog/FileChooserDialog (via cgo; requires gtk3 development packages)

build

go mod download
go build
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].