This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run with zig run --release-fast readtest.zig | |
const std = @import("std"); | |
const net = std.net; | |
const os = std.os; | |
const math = std.math; | |
const mem = std.mem; | |
const File = std.fs.File; | |
const assert = std.debug.assert; | |
//pub const io_mode = .evented; | |
const Buffer = std.Buffer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run with zig run --release-fast readtest.zig | |
const std = @import("std"); | |
const net = std.net; | |
const os = std.os; | |
const math = std.math; | |
const mem = std.mem; | |
const File = std.fs.File; | |
const assert = std.debug.assert; | |
//pub const io_mode = .evented; | |
const buffer_size = 16384; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from enaml.qt.QtGui import QCursor | |
enamldef PopupMenu(Menu): menu: | |
attr selected = set() | |
attr choices = [] | |
attr pos = None | |
activated :: | |
# Save where it was opened | |
self.pos = QCursor.pos() | |
Looper: |