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
fileInputArea <- function(inputId, label, multiple = FALSE, accept = NULL, | |
width = NULL, buttonLabel = "Browse...", placeholder = "No file selected") { | |
restoredValue <- restoreInput(id = inputId, default = NULL) | |
# Catch potential edge case - ensure that it's either NULL or a data frame. | |
if (!is.null(restoredValue) && !is.data.frame(restoredValue)) { | |
warning("Restored value for ", inputId, " has incorrect format.") | |
restoredValue <- NULL | |
} |
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
import time | |
import win32api, win32con | |
VK_CODE = {'left_arrow':0x25, | |
'spacebar':0x20, | |
'right_arrow':0x27} | |
def press(x): | |
win32api.keybd_event(VK_CODE[x], 0,0,0) | |
win32api.keybd_event(VK_CODE[x],0 ,win32con.KEYEVENTF_KEYUP ,0) |