@@ -19080,7 +19080,7 @@ onDisplayGene <- function() {
19080
19080
tkgrid(geneDropdown, padx = 10, pady = 5)
19081
19081
19082
19082
# Function to update the dropdown based on user input
19083
- updateDropdown <- function() {
19083
+ updateDropdown <- function(... ) {
19084
19084
userInput <- tclvalue(geneEntryVar)
19085
19085
filteredNames <- geneNamesList[grepl(paste0("^", userInput), geneNamesList, ignore.case = TRUE)]
19086
19086
@@ -19092,7 +19092,7 @@ onDisplayGene <- function() {
19092
19092
}
19093
19093
19094
19094
# Trace the entry variable for changes and update dropdown accordingly
19095
- tclVar_trace (geneEntryVar, "w", updateDropdown)
19095
+ trace (geneEntryVar, mode = "w", updateDropdown)
19096
19096
19097
19097
# Function to handle the 'OK' button click
19098
19098
onOK <- function() {
@@ -19118,19 +19118,20 @@ onDisplayGene <- function() {
19118
19118
19119
19119
# OK button
19120
19120
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 )
19122
19122
19123
19123
# Cancel button
19124
19124
onCancel <- function() {
19125
19125
tkdestroy(geneDialog) # Close the dialog box without action
19126
19126
}
19127
19127
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 )
19129
19129
19130
19130
# Keep focus on the dialog
19131
19131
tkfocus(geneDialog)
19132
19132
tcl("update") # Ensure focus and window visibility is updated
19133
19133
}
19134
+
19134
19135
displayGeneButton <- ttkbutton(genePlotTypeFrame, text='Display Single Gene', width=21, command=onDisplayGene)
19135
19136
19136
19137
onDisplayProteome <- function()
0 commit comments