Skip to content

Commit 8cc10e6

Browse files
authored
Update digestR.R
1 parent 6b869e8 commit 8cc10e6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

R/digestR.R

+5-4
Original file line numberDiff line numberDiff line change
@@ -19080,7 +19080,7 @@ onDisplayGene <- function() {
1908019080
tkgrid(geneDropdown, padx = 10, pady = 5)
1908119081

1908219082
# Function to update the dropdown based on user input
19083-
updateDropdown <- function() {
19083+
updateDropdown <- function(...) {
1908419084
userInput <- tclvalue(geneEntryVar)
1908519085
filteredNames <- geneNamesList[grepl(paste0("^", userInput), geneNamesList, ignore.case = TRUE)]
1908619086

@@ -19092,7 +19092,7 @@ onDisplayGene <- function() {
1909219092
}
1909319093

1909419094
# Trace the entry variable for changes and update dropdown accordingly
19095-
tclVar_trace(geneEntryVar, "w", updateDropdown)
19095+
trace(geneEntryVar, mode = "w", updateDropdown)
1909619096

1909719097
# Function to handle the 'OK' button click
1909819098
onOK <- function() {
@@ -19118,19 +19118,20 @@ onDisplayGene <- function() {
1911819118

1911919119
# OK button
1912019120
okButton <- ttkbutton(geneDialog, text = 'OK', command = onOK)
19121-
tkgrid(okButton, padx = 10, pady = 10)
19121+
tkgrid(okButton, padx = 10, pady = 5, row = 5, column = 0)
1912219122

1912319123
# Cancel button
1912419124
onCancel <- function() {
1912519125
tkdestroy(geneDialog) # Close the dialog box without action
1912619126
}
1912719127
cancelButton <- ttkbutton(geneDialog, text = 'Cancel', command = onCancel)
19128-
tkgrid(cancelButton, padx = 10, pady = 10)
19128+
tkgrid(cancelButton, padx = 10, pady = 5, row = 5, column = 1)
1912919129

1913019130
# Keep focus on the dialog
1913119131
tkfocus(geneDialog)
1913219132
tcl("update") # Ensure focus and window visibility is updated
1913319133
}
19134+
1913419135
displayGeneButton <- ttkbutton(genePlotTypeFrame, text='Display Single Gene', width=21, command=onDisplayGene)
1913519136

1913619137
onDisplayProteome <- function()

0 commit comments

Comments
 (0)